add automatic gc to servers

This commit is contained in:
2023-11-06 14:28:40 +01:00
parent f081efd17e
commit 56282c8ba6
3 changed files with 15 additions and 1 deletions

View File

@@ -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;