diff --git a/configuration.nix b/configuration.nix index eb5e04d..632729d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -160,4 +160,11 @@ # flakes nix.settings.experimental-features = [ "nix-command" "flakes" ]; + + # automatically collect garbage + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 60d"; + }; }