mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 15:03:55 -05:00
24 lines
447 B
Nix
24 lines
447 B
Nix
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
...
|
||
|
}: {
|
||
|
environment.variables.FLAKE = lib.mkDefault "github:alyraffauf/nixcfg";
|
||
|
|
||
|
system.autoUpgrade = {
|
||
|
enable = true;
|
||
|
allowReboot = false;
|
||
|
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";
|
||
|
};
|
||
|
};
|
||
|
}
|