add auto garbage collection

This commit is contained in:
Noah Masur 2023-04-15 10:07:59 -04:00
parent 34cf2a4483
commit 82344372dd

View File

@ -79,9 +79,16 @@
warn-dirty = false
'';
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
settings = {
# Add community Cachix to binary cache
builders-use-substitutes = true;
substituters = lib.mkIf (!pkgs.stdenv.isDarwin)
[ "https://nix-community.cachix.org" ];
trusted-public-keys = lib.mkIf (!pkgs.stdenv.isDarwin) [