summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2015-08-20 22:56:41 +0200
committerPeter Simons <simons@cryp.to>2015-08-20 22:56:41 +0200
commitab6c8643d451b04884e938cd7ed2186663d32a96 (patch)
treefb971f0c211ac8fda81593c297cfe3942cedb593
parent2e917466615563827ad7a87fc6e334c10d65f68e (diff)
downloadnixpkgs-ab6c8643d451b04884e938cd7ed2186663d32a96.tar
nixpkgs-ab6c8643d451b04884e938cd7ed2186663d32a96.tar.gz
nixpkgs-ab6c8643d451b04884e938cd7ed2186663d32a96.tar.bz2
nixpkgs-ab6c8643d451b04884e938cd7ed2186663d32a96.tar.lz
nixpkgs-ab6c8643d451b04884e938cd7ed2186663d32a96.tar.xz
nixpkgs-ab6c8643d451b04884e938cd7ed2186663d32a96.tar.zst
nixpkgs-ab6c8643d451b04884e938cd7ed2186663d32a96.zip
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.
-rw-r--r--nixos/modules/services/misc/nix-gc.nix2
1 files changed, 1 insertions, 1 deletions
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;
       };