From 96cb73320727ab6692771592f7fcee6ada43b6da Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 4 Sep 2015 10:42:25 +0200 Subject: [PATCH] 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. --- nixos/modules/services/misc/nix-gc.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/nix-gc.nix b/nixos/modules/services/misc/nix-gc.nix index 981299352575..6a7a7f4cee72 100644 --- a/nixos/modules/services/misc/nix-gc.nix +++ b/nixos/modules/services/misc/nix-gc.nix @@ -52,7 +52,7 @@ in systemd.services.nix-gc = { description = "Nix Garbage Collector"; - script = "exec ${config.nix.package}/bin/nix-store --gc ${cfg.options}"; + script = "exec ${config.nix.package}/bin/nix-collect-garbage ${cfg.options}"; startAt = optionalString cfg.automatic cfg.dates; };