nixpkgs-suyu/upstart-jobs/xfs.nix
2008-01-14 11:24:36 +00:00

19 lines
392 B
Nix

{
pkgs, config
}:
let
configFile = ./xfs.conf;
startingDependency = if config.services.gw6c.enable && config.services.gw6c.autorun then "gw6c" else "network-interfaces";
in
rec {
name = "xfs";
groups = [];
users = [];
job = "
description = \"X Font Server\"
start on ${startingDependency}/started
stop on shutdown
respawn ${pkgs.xorg.xfs}/bin/xfs -config ${configFile}
";
}