diff options
author | Peter Simons <simons@cryp.to> | 2015-08-20 22:56:41 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2015-08-20 22:56:41 +0200 |
commit | ab6c8643d451b04884e938cd7ed2186663d32a96 (patch) | |
tree | fb971f0c211ac8fda81593c297cfe3942cedb593 | |
parent | 2e917466615563827ad7a87fc6e334c10d65f68e (diff) |
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.nix | 2 |
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 6a7a7f4cee726..981299352575c 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; }; |