From ab6c8643d451b04884e938cd7ed2186663d32a96 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 20 Aug 2015 22:56:41 +0200 Subject: [PATCH] nix-gc.nix: prefer "nix-store" over "nix-collect-garbage" because the latter supports "--max-freed" Works around https://github.com/NixOS/nix/issues/609. --- 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 6a7a7f4cee7..98129935257 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-collect-garbage ${cfg.options}"; + script = "exec ${config.nix.package}/bin/nix-store --gc ${cfg.options}"; startAt = optionalString cfg.automatic cfg.dates; };