2007-11-05 09:54:30 +01:00
|
|
|
{
|
|
|
|
pkgs, config
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
configFile = ./xfs.conf;
|
2007-11-09 19:49:45 +01:00
|
|
|
startingDependency = if config.services.gw6c.enable then "gw6c" else "network-interfaces";
|
2007-11-05 09:54:30 +01:00
|
|
|
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}
|
|
|
|
";
|
|
|
|
}
|