nixcfg/common/autoUpgrade.nix
Aly Raffauf 419b3ef380
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 / pacifidlog-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: move $FLAKE definition from autoUpgrade to base
2024-10-14 23:59:28 -04:00

18 lines
358 B
Nix

{config, ...}: {
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";
};
};
}