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