6663af0833
running by the time the job has finished starting. This obviates the need for the sleep hack in other jobs. svn path=/nixos/trunk/; revision=14875
19 lines
447 B
Nix
19 lines
447 B
Nix
args: with args;
|
|
|
|
let
|
|
|
|
cfg = config.services.disnix;
|
|
|
|
in
|
|
{
|
|
name = "disnix";
|
|
|
|
job = ''
|
|
description "Disnix server"
|
|
|
|
start on dbus
|
|
stop on shutdown
|
|
|
|
respawn ${pkgs.bash}/bin/sh -c 'export PATH=/var/run/current-system/sw/bin:$PATH; export HOME=/root; export DISNIX_ACTIVATE_HOOK=${cfg.activateHook}; export DISNIX_DEACTIVATE_HOOK=${cfg.deactivateHook}; ${pkgs.disnix}/bin/disnix-service'
|
|
'';
|
|
}
|