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 = [
./services/adguardhome.nix
@ -17,6 +17,13 @@
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
home-manager.users.${username} = {
home.stateVersion = "23.05";
};
system = {
stateVersion = "23.05";
autoUpgrade.operation = "switch";
};
users.mutableUsers = false;
hardware.bluetooth.enable = true;
}

View file

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