feat: automatically optmimize and garbage-collect nix store

This commit is contained in:
mandlm 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 = { nix = {
package = pkgs.nixFlakes; package = pkgs.nixFlakes;
extraOptions = "experimental-features = nix-command flakes"; extraOptions = "experimental-features = nix-command flakes";
autoOptimiseStore = true;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
}; };
system.stateVersion = "22.05"; system.stateVersion = "22.05";