2007-11-05 09:54:30 +01:00
|
|
|
{
|
|
|
|
pkgs, config
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
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 {
|
|
|
|
name = "xfs";
|
|
|
|
groups = [];
|
|
|
|
users = [];
|
|
|
|
job = "
|
2008-01-24 21:37:27 +01:00
|
|
|
description \"X Font Server\"
|
2007-11-05 09:54:30 +01:00
|
|
|
start on ${startingDependency}/started
|
2007-12-25 13:16:38 +01:00
|
|
|
stop on shutdown
|
2007-11-05 09:54:30 +01:00
|
|
|
|
|
|
|
respawn ${pkgs.xorg.xfs}/bin/xfs -config ${configFile}
|
|
|
|
";
|
|
|
|
}
|