Ensure that ‘nix.gc.options’ is subject to shell expansion
This commit is contained in:
parent
96ba0ca283
commit
1aea92c4ce
|
@ -3,7 +3,6 @@
|
||||||
with pkgs.lib;
|
with pkgs.lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
nix = config.environment.nix;
|
|
||||||
cfg = config.nix.gc;
|
cfg = config.nix.gc;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
@ -54,8 +53,8 @@ in
|
||||||
|
|
||||||
boot.systemd.services."nix-gc" =
|
boot.systemd.services."nix-gc" =
|
||||||
{ description = "Nix Garbage Collector";
|
{ description = "Nix Garbage Collector";
|
||||||
serviceConfig.ExecStart =
|
path = [ config.environment.nix ];
|
||||||
"@${nix}/bin/nix-collect-garbage nix-collect-garbage ${cfg.options}";
|
script = "exec nix-collect-garbage ${cfg.options}";
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue