Disable reboot for autoUpgrade

This commit is contained in:
Evie Litherland-Smith 2024-06-25 06:50:05 +01:00
parent f080742cb6
commit 0720bb4c21
2 changed files with 3 additions and 8 deletions

View file

@ -15,12 +15,5 @@
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
}; };
users.mutableUsers = false; users.mutableUsers = false;
system.autoUpgrade = { system.autoUpgrade.operation = "switch";
operation = "switch";
allowReboot = true;
rebootWindow = {
lower = "01:00";
upper = "05:00";
};
};
} }

View file

@ -32,10 +32,12 @@
autoUpgrade = { autoUpgrade = {
enable = true; enable = true;
persistent = true; persistent = true;
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 = "45min"; randomizedDelaySec = "45min";
flags = [ flags = [
"--accept-flake-config"
"--option" "--option"
"extra-binary-caches" "extra-binary-caches"
"https://nix.xenia.me.uk" "https://nix.xenia.me.uk"