1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/upstart-jobs/nix-daemon.nix
Eelco Dolstra 69ef41ea14 * Need gzip in the Nix daemon's PATH. Forgot to commit this.
svn path=/nixos/trunk/; revision=14274
2009-02-27 13:40:31 +00:00

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
";
}