diff --git a/modules/nixos/features/nix-settings.nix b/modules/nixos/features/nix-settings.nix index 17c6c71..9fcaf07 100644 --- a/modules/nixos/features/nix-settings.nix +++ b/modules/nixos/features/nix-settings.nix @@ -5,7 +5,16 @@ in { config = lib.mkIf config.${feature}.enable { nix = { - optimise.automatic = true; + gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 20d"; + persistent = true; + }; + optimise = { + automatic = true; + persistent = true; + }; settings = { experimental-features = [ "nix-command"