feat: automatically optmimize and garbage-collect nix store

This commit is contained in:
Michael Mandl 2022-07-07 16:13:39 +02:00
parent 6fc7c95ae9
commit 6de9356406
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7

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