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 /nixos/modules/services/misc/nix-gc.nix | |
parent | 2e917466615563827ad7a87fc6e334c10d65f68e (diff) | |
download | nixlib-ab6c8643d451b04884e938cd7ed2186663d32a96.tar nixlib-ab6c8643d451b04884e938cd7ed2186663d32a96.tar.gz nixlib-ab6c8643d451b04884e938cd7ed2186663d32a96.tar.bz2 nixlib-ab6c8643d451b04884e938cd7ed2186663d32a96.tar.lz nixlib-ab6c8643d451b04884e938cd7ed2186663d32a96.tar.xz nixlib-ab6c8643d451b04884e938cd7ed2186663d32a96.tar.zst nixlib-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.
Diffstat (limited to 'nixos/modules/services/misc/nix-gc.nix')
-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 6a7a7f4cee72..981299352575 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; }; |