6013de33f8
Author: eelco @ rev 14274 svn path=/nixos/branches/fix-style/; revision=14444
18 lines
390 B
Nix
18 lines
390 B
Nix
{config, pkgs, nix, nixEnvVars}:
|
|
|
|
{
|
|
name = "nix-daemon";
|
|
|
|
job = "
|
|
start on startup
|
|
stop on shutdown
|
|
respawn
|
|
script
|
|
export PATH=${if config.nix.distributedBuilds then "${pkgs.openssh}/bin:${pkgs.gzip}/bin:" else ""}${pkgs.openssl}/bin:${nix}/bin:$PATH
|
|
${nixEnvVars}
|
|
exec nice -10 ${nix}/bin/nix-worker --daemon > /dev/null 2>&1
|
|
end script
|
|
";
|
|
|
|
}
|