Disable autoUpgrade for regular machines, only keep for server

This commit is contained in:
Evie Litherland-Smith 2024-03-08 08:03:03 +00:00
parent 07cce0e8a8
commit 162c76c46d
2 changed files with 9 additions and 14 deletions

View file

@ -93,20 +93,7 @@
sansSerif = font "aile";
monospace = font "nerdfont";
};
system = {
inherit stateVersion;
autoUpgrade = {
enable = true;
flake = lib.mkDefault self.outPath;
flags = [
"--update-input"
"nixpkgs"
"--no-write-lock-file"
"-L" # print build logs
];
dates = "02:00";
};
};
system = {inherit stateVersion;};
users = {
defaultUserShell = pkgs.${defaultUserShell};
users = let

View file

@ -1,7 +1,15 @@
{config, ...}: {
users.mutableUsers = false;
system.autoUpgrade = {
enable = true;
flake = "git+${config.nix.registry.nixos.to.url}";
flags = [
"--update-input"
"nixpkgs"
"--no-write-lock-file"
"-L" # print build logs
];
dates = "02:00";
randomizedDelaySec = "15min";
allowReboot = true;
rebootWindow = {