feat: automatically optmimize and garbage-collect nix store
This commit is contained in:
parent
6fc7c95ae9
commit
6de9356406
1 changed files with 7 additions and 0 deletions
|
@ -96,6 +96,13 @@
|
|||
nix = {
|
||||
package = pkgs.nixFlakes;
|
||||
extraOptions = "experimental-features = nix-command flakes";
|
||||
|
||||
autoOptimiseStore = true;
|
||||
gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 30d";
|
||||
};
|
||||
};
|
||||
|
||||
system.stateVersion = "22.05";
|
||||
|
|
Loading…
Reference in a new issue