Automatic GC

This commit is contained in:
Filippo Berto 2022-07-25 09:37:22 +02:00
parent abdc5f5627
commit 34b7dd2846

View file

@ -236,7 +236,10 @@ with lib;
package = pkgs.nixFlakes; package = pkgs.nixFlakes;
extraOptions = lib.optionalString (config.nix.package == pkgs.nixFlakes) extraOptions = lib.optionalString (config.nix.package == pkgs.nixFlakes)
"experimental-features = nix-command flakes"; "experimental-features = nix-command flakes";
gc.automatic = true; gc = {
automatic = true;
options = "--delete-older-than 7d";
};
}; };
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default