diff --git a/modules/nix/linux.nix b/modules/nix/linux.nix index 4508ccc..8741dea 100644 --- a/modules/nix/linux.nix +++ b/modules/nix/linux.nix @@ -6,4 +6,11 @@ # Enable nix-command and flakes nix.settings.experimental-features = [ "nix-command" "flakes" ]; + + # Enable automatic garbage collection + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 14d"; + }; }