Set autoUpgrade to "boot" by default, keep as "switch" for Legion

Add stateVersion variables to Legion, missed last time...
This commit is contained in:
Evie Litherland-Smith 2024-10-17 06:17:24 +01:00
parent 04033bd40c
commit 4a34969506
2 changed files with 10 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ ... }: { username, ... }:
{ {
imports = [ imports = [
./services/adguardhome.nix ./services/adguardhome.nix
@ -17,6 +17,13 @@
systemd-boot.enable = true; systemd-boot.enable = true;
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
}; };
home-manager.users.${username} = {
home.stateVersion = "23.05";
};
system = {
stateVersion = "23.05";
autoUpgrade.operation = "switch";
};
users.mutableUsers = false; users.mutableUsers = false;
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
} }

View file

@ -29,7 +29,6 @@
"flakes" "flakes"
]; ];
auto-optimise-store = true; auto-optimise-store = true;
download-buffer-size = "2G";
substituters = [ "https://nix.xenia.me.uk" ]; substituters = [ "https://nix.xenia.me.uk" ];
trusted-public-keys = [ "nix.xenia.me.uk:tlgwOaG5KMLjQUk2YaErS8mAG69ZCr3PaHXZYi+Y5eI=" ]; trusted-public-keys = [ "nix.xenia.me.uk:tlgwOaG5KMLjQUk2YaErS8mAG69ZCr3PaHXZYi+Y5eI=" ];
}; };
@ -82,13 +81,14 @@
}; };
system.autoUpgrade = { system.autoUpgrade = {
enable = true; enable = true;
operation = lib.mkDefault "boot";
persistent = true; persistent = true;
allowReboot = false; allowReboot = false;
flake = "git+${config.nix.registry.my-nixos.to.url}"; flake = "git+${config.nix.registry.my-nixos.to.url}";
dates = "02:00"; dates = "02:00";
randomizedDelaySec = "5min"; randomizedDelaySec = "5min";
fixedRandomDelay = true;
flags = [ flags = [
"--accept-flake-config"
"--option" "--option"
"extra-binary-caches" "extra-binary-caches"
"https://nix.xenia.me.uk" "https://nix.xenia.me.uk"