enable auto gc

This commit is contained in:
TheWanderingCrow 2025-12-30 20:54:18 -05:00
parent 8979293f63
commit 741b82a10d

View file

@ -63,28 +63,35 @@ in
virtualisation.oci-containers.backend = lib.mkDefault "podman"; virtualisation.oci-containers.backend = lib.mkDefault "podman";
nix.settings = { nix = {
connect-timeout = 5; settings = {
log-lines = 25; connect-timeout = 5;
min-free = 128000000; log-lines = 25;
max-free = 1000000000; min-free = 128000000;
max-free = 1000000000;
experimental-features = [ experimental-features = [
"nix-command" "nix-command"
"flakes" "flakes"
]; ];
fallback = true; fallback = true;
auto-optimise-store = true; auto-optimise-store = true;
trusted-users = [ "@wheel" ]; trusted-users = [ "@wheel" ];
substituters = [ substituters = [
"https://cache.nixos.org/" "https://cache.nixos.org/"
"https://nix-community.cachix.org" "https://nix-community.cachix.org"
]; ];
trusted-public-keys = [ trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
]; ];
};
# Automatic garbage collect
gc = {
automatic = true;
dates = "weekly";
};
}; };
} }