mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-12-04 13:32:40 -05:00
18 lines
358 B
Nix
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";
|
|
};
|
|
};
|
|
}
|