nixpkgs-suyu/upstart-jobs/nix-daemon.nix
Eelco Dolstra b80769d5ae * Hm, "set" doesn't seem to do the right thing.
svn path=/nixos/trunk/; revision=7308
2006-12-11 02:55:28 +00:00

15 lines
220 B
Nix

{nix}:
{
name = "nix-daemon";
job = "
start on startup
stop on shutdown
script
export NIX_CONF_DIR=/nix/etc/nix
exec ${nix}/bin/nix-worker --daemon > /dev/null 2>&1
end script
";
}