Skip to content

Commit

Permalink
Disable automatic gc
Browse files Browse the repository at this point in the history
Signed-off-by: Henri Rosten <henri.rosten@unikie.com>
  • Loading branch information
henrirosten committed May 17, 2024
1 parent d01398f commit 0b086cf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nix-modules/common-nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0b086cf

Please # to comment.