nixcfg/common/autoUpgrade.nix

24 lines
446 B
Nix
Raw Normal View History

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