diff --git a/modules/features/layers/base.nix b/modules/features/layers/base.nix index 82ca5dd..ce29d68 100644 --- a/modules/features/layers/base.nix +++ b/modules/features/layers/base.nix @@ -54,6 +54,14 @@ # List services that you want to enable: + # Optimizations and garbage collection + nix.optimise.automatic = true; + nix.optimise.dates = [ "03:45" ]; + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; }; };