Evie Litherland-Smith
78f7af88a8
Set autoUpgrade flake to current flake outpath but keeping nixpkgs update, means things won't automatically be rolled back if there's no internet connection. Keep using remote URL for server though to keep unattended updates.
13 lines
266 B
Nix
13 lines
266 B
Nix
{config, ...}: {
|
|
users.mutableUsers = false;
|
|
system.autoUpgrade = {
|
|
flake = "git+${config.nix.registry.nixos.to.url}";
|
|
randomizedDelaySec = "15min";
|
|
allowReboot = true;
|
|
rebootWindow = {
|
|
lower = "02:00";
|
|
upper = "05:00";
|
|
};
|
|
};
|
|
}
|