feat: automatically optmimize and garbage-collect nix store

main
mandlm 2022-07-07 16:13:39 +02:00
parent 6fc7c95ae9
commit 6de9356406
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
1 changed files with 7 additions and 0 deletions

View File

@ -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";