3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/upstart-jobs/xfs.nix
Michael Raskin 01004362f2 Now xfs job fails without enableFontDir.
svn path=/nixos/trunk/; revision=10279
2008-01-24 21:35:24 +00:00

21 lines
496 B
Nix

{
pkgs, config
}:
if ! config.fonts.enableFontDir then abort "Please enable fontDir (fonts.enableFontDir) to use xfs." else
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}
";
}