This commit is contained in:
Ananth Venkatesh 2025-06-15 18:25:53 -07:00 committed by GitHub
commit 6f5cbe390e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 119 additions and 34 deletions

View file

@ -8,7 +8,7 @@
lib,
...
}:
{
rec {
imports = [ ./hardware-configuration.nix ];
networking.hostName = "adrastea";
@ -92,12 +92,24 @@
nixpkgs.config.allowUnfree = true;
system = {
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.05"; # Did you read the comment?
stateVersion = "24.05"; # Did you read the comment?
# Automatically rebuild system daily
autoUpgrade = {
enable = true;
flake = liminalOS.flakeLocation;
flags = [
"-L" # print build logs
];
dates = "daily";
};
};
}

View file

@ -7,7 +7,7 @@
lib,
...
}:
{
rec {
imports = [ ./hardware-configuration.nix ];
networking.hostName = "callisto";
@ -86,5 +86,17 @@
};
};
system.stateVersion = "24.11";
system = {
stateVersion = "24.11";
# Automatically rebuild system daily
autoUpgrade = {
enable = true;
flake = liminalOS.flakeLocation;
flags = [
"-L" # print build logs
];
dates = "daily";
};
};
}

View file

@ -6,7 +6,7 @@
inputs,
...
}:
{
rec {
networking.hostName = "cassini"; # Define your hostname.
liminalOS = {
@ -43,11 +43,23 @@
nixpkgs.hostPlatform = "x86_64-linux";
system = {
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.05"; # Did you read the comment?
stateVersion = "24.05"; # Did you read the comment?
# Automatically rebuild system daily
autoUpgrade = {
enable = true;
flake = liminalOS.flakeLocation;
flags = [
"-L" # print build logs
];
dates = "daily";
};
};
}

View file

@ -6,7 +6,7 @@
pkgs,
...
}:
{
rec {
imports = [
./hardware-configuration.nix
];
@ -67,11 +67,23 @@
"/dev/disk/by-uuid/af320a0f-b388-43f5-b5a3-af2b47cfc716";
};
system = {
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.05"; # Did you read the comment?
stateVersion = "24.05"; # Did you read the comment?
# Automatically rebuild system daily
autoUpgrade = {
enable = true;
flake = liminalOS.flakeLocation;
flags = [
"-L" # print build logs
];
dates = "daily";
};
};
}

View file

@ -66,6 +66,22 @@
ExecStart = "/nix/var/nix/profiles/system/bin/switch-to-configuration test";
};
};
refresh = let
flakeLocation = "/home/youwen/.config/liminalOS";
in {
description = "Automatically update liminalOS";
after = [ "network-online.target" ];
requires = [ "network-online.target" ];
script = ''
cd ${flakeLocation}
${pkgs.git}/bin/git config --global --add safe.directory ${flakeLocation}
${pkgs.git}/bin/git pull
'';
serviceConfig = {
Environment = "HOME=/root";
};
wantedBy = [ ];
};
};
systemd.timers = {
colorscheme-dawn = {
@ -86,6 +102,15 @@
Unit = "colorscheme-dusk.service";
};
};
refresh = {
description = "Schedule daily system updates";
wantedBy = [ "timers.target" ];
timerConfig = {
OnCalendar = "daily";
Persistent = true;
Unit = "refresh.service";
};
};
};
security.polkit.extraConfig = ''

View file

@ -6,7 +6,7 @@
inputs,
...
}:
{
rec {
imports = [
# Important: you should replace hardware-configuration.nix with your actual
# hardware-configuration.nix generated during NixOS installation, located
@ -95,11 +95,23 @@
};
};
system = {
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.05"; # Did you read the comment?
stateVersion = "24.05"; # Did you read the comment?
# Automatically rebuild system daily
autoUpgrade = {
enable = true;
flake = liminalOS.flakeLocation;
flags = [
"-L" # print build logs
];
dates = "daily";
};
};
}