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.
This commit is contained in:
Peter Simons 2015-08-20 22:56:41 +02:00
parent 2e91746661
commit ab6c8643d4

View File

@ -52,7 +52,7 @@ in
systemd.services.nix-gc = systemd.services.nix-gc =
{ description = "Nix Garbage Collector"; { 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; startAt = optionalString cfg.automatic cfg.dates;
}; };