Build unit files locally

This commit is contained in:
Eelco Dolstra 2013-06-20 19:39:09 +02:00
parent 8dad56384e
commit 7810f7f61a

View File

@ -11,7 +11,7 @@ let
systemd = cfg.package;
makeUnit = name: unit:
pkgs.runCommand "unit" { inherit (unit) text; }
pkgs.runCommand "unit" { inherit (unit) text; preferLocalBuild = true; }
(if unit.enable then ''
mkdir -p $out
echo -n "$text" > $out/${name}