diff --git a/configs/desktop.nix b/configs/desktop.nix index a737f43..044ce1d 100644 --- a/configs/desktop.nix +++ b/configs/desktop.nix @@ -104,6 +104,17 @@ ''; }; + # Enable automatic optimization of the nix store + nix.settings.auto-optimise-store = true; + + # Enable automatic garbage collection on anything + # stale and older than 2 weeks + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 14d"; + }; + # Setup our ZSH shell. # First let's absolutely make sure the shell is enabled programs.zsh.enable = true;