mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 12:22:37 +03:00
nix-gc.nix: Revert 'prefer "nix-store" over "nix-collect-garbage" because the latter supports "--max-freed"'
This reverts commitab6c8643d4
. Issue https://github.com/NixOS/nix/issues/609 has been resolved, the new Nix version is available after86eaeb4c0a
, and using nix-collect-garbage has the advantage that the '-d' flag is available, which nix-store doesn't have.
This commit is contained in:
parent
1ca79bff84
commit
96cb733207
@ -52,7 +52,7 @@ in
|
||||
|
||||
systemd.services.nix-gc =
|
||||
{ description = "Nix Garbage Collector";
|
||||
script = "exec ${config.nix.package}/bin/nix-store --gc ${cfg.options}";
|
||||
script = "exec ${config.nix.package}/bin/nix-collect-garbage ${cfg.options}";
|
||||
startAt = optionalString cfg.automatic cfg.dates;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user