2008-07-06 20:34:19 +02:00
|
|
|
args: with args;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
cfg = config.services.disnix;
|
|
|
|
|
|
|
|
in
|
|
|
|
{
|
|
|
|
name = "disnix";
|
2008-07-23 16:13:27 +02:00
|
|
|
|
2008-07-06 20:34:19 +02:00
|
|
|
job = ''
|
|
|
|
description "Disnix server"
|
|
|
|
|
|
|
|
start on dbus
|
2008-07-23 16:13:27 +02:00
|
|
|
stop on shutdown
|
2008-07-06 20:34:19 +02:00
|
|
|
|
|
|
|
start script
|
|
|
|
# !!! quick hack: wait until dbus has started
|
|
|
|
sleep 3
|
|
|
|
end script
|
|
|
|
|
|
|
|
respawn ${pkgs.bash}/bin/sh -c 'export PATH=/var/run/current-system/sw/bin:$PATH; export HOME=/root; ${pkgs.disnix}/bin/disnix-service'
|
|
|
|
'';
|
|
|
|
}
|