Automatic GC
This commit is contained in:
parent
abdc5f5627
commit
34b7dd2846
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue