From 7432c000e1c9a3c230ef11924e7144a68c23d303 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sat, 25 May 2024 14:33:45 -0400 Subject: [PATCH] nix: optimise gc persistently --- nixosModules/system/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixosModules/system/default.nix b/nixosModules/system/default.nix index dfacece8..be4f8450 100644 --- a/nixosModules/system/default.nix +++ b/nixosModules/system/default.nix @@ -126,10 +126,10 @@ nix = { optimise.automatic = true; gc = { - # Delete generations older than 7 days. automatic = true; dates = "daily"; options = "--delete-older-than 3d"; + persistent = true; randomizedDelaySec = "60min"; }; # Run GC when there is less than 100MiB left.