diff --git a/configuration.nix b/configuration.nix index 99866bf..b2f0fc4 100755 --- a/configuration.nix +++ b/configuration.nix @@ -9,6 +9,7 @@ ./system-modules/sound.nix ./system-modules/fonts.nix ./system-modules/boot.nix + ./system-modules/gc.nix ./system-modules/dm.nix ./system-modules/networking.nix ./system-modules/virtualisation.nix diff --git a/system-modules/gc.nix b/system-modules/gc.nix new file mode 100644 index 0000000..2ddd4cd --- /dev/null +++ b/system-modules/gc.nix @@ -0,0 +1,11 @@ +{ ... }: +{ + nix = { + gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; + settings.auto-optimise-store = true; + }; +}