Ensure that ‘nix.gc.options’ is subject to shell expansion

This commit is contained in:
Eelco Dolstra 2013-01-05 01:35:26 +01:00
parent 96ba0ca283
commit 1aea92c4ce
1 changed files with 2 additions and 3 deletions

View File

@ -3,7 +3,6 @@
with pkgs.lib;
let
nix = config.environment.nix;
cfg = config.nix.gc;
in
@ -54,8 +53,8 @@ in
boot.systemd.services."nix-gc" =
{ description = "Nix Garbage Collector";
serviceConfig.ExecStart =
"@${nix}/bin/nix-collect-garbage nix-collect-garbage ${cfg.options}";
path = [ config.environment.nix ];
script = "exec nix-collect-garbage ${cfg.options}";
};
};