diff --git a/hosts/game-luanti/default.nix b/hosts/game-luanti/default.nix index 1aafbcc..f5b0f39 100644 --- a/hosts/game-luanti/default.nix +++ b/hosts/game-luanti/default.nix @@ -5,6 +5,7 @@ ../../modules/game/server/luanti ../../modules/sec_auth/ssh-server.nix + ../../modules/pkg_mgrmnt/unattended-updates.nix ../../system_profiles/server.nix ]; diff --git a/modules/pkg_mgrmnt/unattended-updates.nix b/modules/pkg_mgrmnt/unattended-updates.nix new file mode 100644 index 0000000..0fe8f1c --- /dev/null +++ b/modules/pkg_mgrmnt/unattended-updates.nix @@ -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"; + }; +}