diff --git a/hosts/git.cloonar.com/configuration.nix b/hosts/git.cloonar.com/configuration.nix index 0adba2d..0cf6398 100644 --- a/hosts/git.cloonar.com/configuration.nix +++ b/hosts/git.cloonar.com/configuration.nix @@ -62,5 +62,10 @@ allowedTCPPorts = [ 22 80 443 8000 ]; }; + nix.gc = { + automatic = true; + options = "--delete-older-than 60d"; + } + system.stateVersion = "23.05"; } diff --git a/hosts/mail.cloonar.com/configuration.nix b/hosts/mail.cloonar.com/configuration.nix index dbf678e..c564f61 100644 --- a/hosts/mail.cloonar.com/configuration.nix +++ b/hosts/mail.cloonar.com/configuration.nix @@ -39,5 +39,10 @@ allowedTCPPorts = [ 22 80 443 ]; }; + nix.gc = { + automatic = true; + options = "--delete-older-than 60d"; + } + system.stateVersion = "22.11"; } diff --git a/hosts/web-01.cloonar.com/configuration.nix b/hosts/web-01.cloonar.com/configuration.nix index 665fc14..03451b3 100644 --- a/hosts/web-01.cloonar.com/configuration.nix +++ b/hosts/web-01.cloonar.com/configuration.nix @@ -57,7 +57,11 @@ sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ]; sops.defaultSopsFile = ./secrets.yaml; - nix.gc.options = "--delete-older-than 60d"; + + nix.gc = { + automatic = true; + options = "--delete-older-than 60d"; + } boot.tmp.cleanOnBoot = true; zramSwap.enable = true;