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:
Eelco Dolstra 2013-10-21 11:17:20 +02:00
parent 375c395d12
commit 65277727e8

View File

@ -52,7 +52,7 @@ in
systemd.services.nix-gc =
{ 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;
};