forked from mirrors/nixpkgs
nix-gc: Revert to "script" instead of ExecStart
There is an assumption that cfg.options can contain shell code, so ExecStart doesn't work here.
This commit is contained in:
parent
375c395d12
commit
65277727e8
|
@ -52,7 +52,7 @@ in
|
||||||
|
|
||||||
systemd.services.nix-gc =
|
systemd.services.nix-gc =
|
||||||
{ description = "Nix Garbage Collector";
|
{ description = "Nix Garbage Collector";
|
||||||
serviceConfig.ExecStart = "${config.environment.nix}/bin/nix-collect-garbage ${cfg.options}";
|
script = "exec ${config.environment.nix}/bin/nix-collect-garbage ${cfg.options}";
|
||||||
startAt = optionalString cfg.automatic cfg.dates;
|
startAt = optionalString cfg.automatic cfg.dates;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue