nixpkgs/upstart-jobs/xfs.nix
Michael Raskin 8c9d312e21 Added xfs; fixed nixos-checkout
svn path=/nixos/trunk/; revision=9579
2007-11-05 08:54:30 +00:00

21 lines
396 B
Nix

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