Build unit files locally
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user