* The daemon needs OpenSSH to be in the PATH for signing/verifying.
svn path=/nixos/trunk/; revision=8025
This commit is contained in:
parent
ed36857d5e
commit
0ee31b29ef
@ -67,6 +67,7 @@ import ../upstart-jobs/gather.nix {
|
|||||||
# Nix daemon - required for multi-user Nix.
|
# Nix daemon - required for multi-user Nix.
|
||||||
(import ../upstart-jobs/nix-daemon.nix {
|
(import ../upstart-jobs/nix-daemon.nix {
|
||||||
inherit nix;
|
inherit nix;
|
||||||
|
inherit (pkgs) openssl;
|
||||||
})
|
})
|
||||||
|
|
||||||
# Cron daemon.
|
# Cron daemon.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{nix}:
|
{nix, openssl}:
|
||||||
|
|
||||||
{
|
{
|
||||||
name = "nix-daemon";
|
name = "nix-daemon";
|
||||||
@ -7,7 +7,11 @@
|
|||||||
start on startup
|
start on startup
|
||||||
stop on shutdown
|
stop on shutdown
|
||||||
env NIX_CONF_DIR=/nix/etc/nix
|
env NIX_CONF_DIR=/nix/etc/nix
|
||||||
respawn ${nix}/bin/nix-worker --daemon > /dev/null 2>&1
|
respawn
|
||||||
|
script
|
||||||
|
export PATH=${openssl}/bin:$PATH
|
||||||
|
exec ${nix}/bin/nix-worker --daemon > /dev/null 2>&1
|
||||||
|
end script
|
||||||
";
|
";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user