Turn on automatic garbage collection

This commit is contained in:
Trevor Vallender 2023-06-06 10:51:38 +01:00
parent 39833bda25
commit c76584670f
1 changed files with 5 additions and 0 deletions

View File

@ -66,6 +66,11 @@ in
nix = { nix = {
extraOptions = "experimental-features = nix-command flakes"; extraOptions = "experimental-features = nix-command flakes";
package = pkgs.nixFlakes; package = pkgs.nixFlakes;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
}; };
services.xserver.enable = true; services.xserver.enable = true;