2007-11-15 17:16:16 +00:00
|
|
|
{config, pkgs, nix, nixEnvVars}:
|
2006-12-09 03:11:14 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
name = "nix-daemon";
|
|
|
|
|
|
|
|
job = "
|
|
|
|
start on startup
|
|
|
|
stop on shutdown
|
2007-02-22 18:04:18 +00:00
|
|
|
respawn
|
|
|
|
script
|
2007-11-15 17:16:16 +00:00
|
|
|
export PATH=${if config.nix.distributedBuilds then "${pkgs.openssh}/bin:" else ""}${pkgs.openssl}/bin:${nix}/bin:$PATH
|
|
|
|
${nixEnvVars}
|
|
|
|
exec ${nix}/bin/nix-worker --daemon > /dev/null 2>&1
|
2007-02-22 18:04:18 +00:00
|
|
|
end script
|
2006-12-09 03:11:14 +00:00
|
|
|
";
|
|
|
|
|
|
|
|
}
|