diff --git a/morph/lib/issuer-aws.nix b/morph/lib/issuer-aws.nix index a66ab72addd43da1feb96bdd86d46312ec327fd3..bf7de56cfb570857da32c34ebfcc9b21c91e702e 100644 --- a/morph/lib/issuer-aws.nix +++ b/morph/lib/issuer-aws.nix @@ -9,7 +9,7 @@ boot.kernel.sysctl = { "vm.swappiness" = 0; }; swapDevices = [ { device = "/var/swapfile"; - size = 8192; # megabytes + size = 4096; # megabytes randomEncryption = true; } ]; @@ -17,4 +17,11 @@ # morph-supplied name. See also # <https://github.com/DBCDK/morph/issues/146>. networking.hostName = name; + + # Clean up packages after a while + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; }