2007-11-05 08:54:30 +00:00
|
|
|
{
|
2008-07-23 14:13:27 +00:00
|
|
|
pkgs, config
|
2007-11-05 08:54:30 +00:00
|
|
|
}:
|
2008-01-24 21:35:24 +00:00
|
|
|
if ! config.fonts.enableFontDir then abort "Please enable fontDir (fonts.enableFontDir) to use xfs." else
|
2007-11-05 08:54:30 +00:00
|
|
|
let
|
2008-07-23 14:13:27 +00:00
|
|
|
configFile = ./xfs.conf;
|
2008-01-14 11:24:36 +00:00
|
|
|
startingDependency = if config.services.gw6c.enable && config.services.gw6c.autorun then "gw6c" else "network-interfaces";
|
2007-11-05 08:54:30 +00:00
|
|
|
in
|
|
|
|
rec {
|
2008-07-23 14:13:27 +00:00
|
|
|
name = "xfs";
|
|
|
|
groups = [];
|
|
|
|
users = [];
|
|
|
|
job = "
|
|
|
|
description \"X Font Server\"
|
|
|
|
start on ${startingDependency}/started
|
|
|
|
stop on shutdown
|
2007-11-05 08:54:30 +00:00
|
|
|
|
2008-07-23 14:13:27 +00:00
|
|
|
respawn ${pkgs.xorg.xfs}/bin/xfs -config ${configFile}
|
|
|
|
";
|
2007-11-05 08:54:30 +00:00
|
|
|
}
|