nix-gc.nix: Revert 'prefer "nix-store" over "nix-collect-garbage" because the latter supports "--max-freed"'
This reverts commit ab6c8643d451b04884e938cd7ed2186663d32a96. Issue
https://github.com/NixOS/nix/issues/609 has been resolved, the new Nix
version is available after 86eaeb4c0a31e623c01f0d39fd5b3e64ce5f80b5, and
using nix-collect-garbage has the advantage that the '-d' flag is
available, which nix-store doesn't have.
commit96cb73320727ab6692771592f7fcee6ada43b6da
authorPeter Simons <simons@cryp.to>
dateFri 4 Sep 2015, 10:42 (11 years ago)
parent1ca79bf
nixos/modules/services/misc/nix-gc.nix+1−1
@@ -52,7 +52,7 @@ in
5252
5353 systemd.services.nix-gc =
5454 { description = "Nix Garbage Collector";
55− script = "exec ${config.nix.package}/bin/nix-store --gc ${cfg.options}";
55+ script = "exec ${config.nix.package}/bin/nix-collect-garbage ${cfg.options}";
5656 startAt = optionalString cfg.automatic cfg.dates;
5757 };
5858