diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-10-21 11:17:20 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-10-21 11:22:27 +0200 |
commit | 65277727e89ef7cd8657eca1c0fda4c2892d3fea (patch) | |
tree | fa48329f22e0333b51c66eaeb49490d8a5195e56 /nixos/modules | |
parent | 375c395d124ad282e92c8e3b87c92ede4c045557 (diff) | |
download | nixlib-65277727e89ef7cd8657eca1c0fda4c2892d3fea.tar nixlib-65277727e89ef7cd8657eca1c0fda4c2892d3fea.tar.gz nixlib-65277727e89ef7cd8657eca1c0fda4c2892d3fea.tar.bz2 nixlib-65277727e89ef7cd8657eca1c0fda4c2892d3fea.tar.lz nixlib-65277727e89ef7cd8657eca1c0fda4c2892d3fea.tar.xz nixlib-65277727e89ef7cd8657eca1c0fda4c2892d3fea.tar.zst nixlib-65277727e89ef7cd8657eca1c0fda4c2892d3fea.zip |
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.
Diffstat (limited to 'nixos/modules')
-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 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; }; |