Enable auto-update on srv01-hf
This commit is contained in:
parent
6989f4be08
commit
962ee20628
2 changed files with 16 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
|||
../../modules/sshd.nix
|
||||
../../modules/qemu-guest.nix
|
||||
../../modules/docker.nix
|
||||
../../modules/auto-upgrade.nix
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
|
15
modules/auto-upgrade.nix
Normal file
15
modules/auto-upgrade.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
system.autoUpgrade = {
|
||||
enable = true;
|
||||
flags = [
|
||||
"--recreate-lock-file" # Deprecated, but will hopefully be reintroduced
|
||||
"-L"
|
||||
];
|
||||
flake = inputs.self.outPath;
|
||||
dates = "02:00";
|
||||
randomizedDelaySec = "45min";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue