From 0b086cf326d71c54113bfe1d879708c0fc1b9b24 Mon Sep 17 00:00:00 2001 From: Henri Rosten Date: Fri, 17 May 2024 13:45:23 +0300 Subject: [PATCH] Disable automatic gc Signed-off-by: Henri Rosten --- nix-modules/common-nix.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nix-modules/common-nix.nix b/nix-modules/common-nix.nix index d438e15..4f06636 100644 --- a/nix-modules/common-nix.nix +++ b/nix-modules/common-nix.nix @@ -28,9 +28,10 @@ in { # check the free disk space every 5 seconds min-free-check-interval = 5; }; - # Garbage collection - gc.automatic = true; - gc.options = pkgs.lib.mkDefault "--delete-older-than 30d"; + # Garbage collection, see: + # https://search.nixos.org/options?type=packages&query=nix.gc + # gc.automatic = true; + # gc.options = pkgs.lib.mkDefault "--delete-older-than 30d"; }; # Sometimes it fails if a store path is still in use.