add automatic gc to servers
This commit is contained in:
parent
f081efd17e
commit
56282c8ba6
3 changed files with 15 additions and 1 deletions
|
|
@ -62,5 +62,10 @@
|
|||
allowedTCPPorts = [ 22 80 443 8000 ];
|
||||
};
|
||||
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
options = "--delete-older-than 60d";
|
||||
}
|
||||
|
||||
system.stateVersion = "23.05";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,5 +39,10 @@
|
|||
allowedTCPPorts = [ 22 80 443 ];
|
||||
};
|
||||
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
options = "--delete-older-than 60d";
|
||||
}
|
||||
|
||||
system.stateVersion = "22.11";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue