From 65277727e89ef7cd8657eca1c0fda4c2892d3fea Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 21 Oct 2013 11:17:20 +0200 Subject: 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. --- nixos/modules/services/misc/nix-gc.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nixos/modules') diff --git a/nixos/modules/services/misc/nix-gc.nix b/nixos/modules/services/misc/nix-gc.nix index dfdc4db65d54..ad6889ce1428 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"; - 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; }; -- cgit 1.4.1