feat: add unattended-updates
This commit is contained in:
parent
cc466ff1e8
commit
022f6deec8
2 changed files with 14 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
||||||
|
|
||||||
../../modules/game/server/luanti
|
../../modules/game/server/luanti
|
||||||
../../modules/sec_auth/ssh-server.nix
|
../../modules/sec_auth/ssh-server.nix
|
||||||
|
../../modules/pkg_mgrmnt/unattended-updates.nix
|
||||||
|
|
||||||
../../system_profiles/server.nix
|
../../system_profiles/server.nix
|
||||||
];
|
];
|
||||||
|
|
13
modules/pkg_mgrmnt/unattended-updates.nix
Normal file
13
modules/pkg_mgrmnt/unattended-updates.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{inArgs, ...}: {
|
||||||
|
system.autoUpgrade = {
|
||||||
|
enable = true;
|
||||||
|
flake = inArgs.self.outPath;
|
||||||
|
flags = [
|
||||||
|
"--update-input"
|
||||||
|
"nixpkgs"
|
||||||
|
"--print-build-logs"
|
||||||
|
];
|
||||||
|
dates = "07:00";
|
||||||
|
randomizedDelaySec = "45min";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue