diff --git a/modules/configuration.nix b/modules/configuration.nix index 3d3bc9b..991a339 100644 --- a/modules/configuration.nix +++ b/modules/configuration.nix @@ -26,7 +26,15 @@ } ]; nix = { - settings.nix-path = config.nix.nixPath; + gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 14d"; + }; + settings = { + auto-optimise-store = true; + nix-path = config.nix.nixPath; + }; nixPath = ["nixpkgs=${inputs.nixpkgs}"]; };