mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
b3fa4f1e4e
svn path=/nixos/trunk/; revision=9966
19 lines
360 B
Nix
19 lines
360 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 shutdown
|
|
|
|
respawn ${pkgs.xorg.xfs}/bin/xfs -config ${configFile}
|
|
";
|
|
}
|