Build unit files locally
This commit is contained in:
parent
8dad56384e
commit
7810f7f61a
@ -11,7 +11,7 @@ let
|
|||||||
systemd = cfg.package;
|
systemd = cfg.package;
|
||||||
|
|
||||||
makeUnit = name: unit:
|
makeUnit = name: unit:
|
||||||
pkgs.runCommand "unit" { inherit (unit) text; }
|
pkgs.runCommand "unit" { inherit (unit) text; preferLocalBuild = true; }
|
||||||
(if unit.enable then ''
|
(if unit.enable then ''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
echo -n "$text" > $out/${name}
|
echo -n "$text" > $out/${name}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user