nixcfg/common/autoUpgrade.nix
Aly Raffauf 7f89988938
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
common: autoUpgrade.randomizedDelaySec 30min -> 60min
2024-08-24 20:59:34 -04:00

24 lines
446 B
Nix

{
config,
lib,
...
}: {
environment.variables.FLAKE = lib.mkDefault "github:alyraffauf/nixcfg";
system.autoUpgrade = {
enable = true;
allowReboot = true;
dates = "02:00";
flags = ["--accept-flake-config"];
flake = config.environment.variables.FLAKE;
operation = "switch";
persistent = true;
randomizedDelaySec = "60min";
rebootWindow = {
lower = "02:00";
upper = "06:00";
};
};
}