mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
2fc94b76fe
svn path=/nixos/trunk/; revision=9619
20 lines
378 B
Nix
20 lines
378 B
Nix
{
|
|
pkgs, config
|
|
}:
|
|
let
|
|
configFile = ./xfs.conf;
|
|
startingDependency = if config.services.gw6c.enable then "gw6c" else "network-interfaces";
|
|
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}
|
|
";
|
|
}
|