mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
8843f3c287
svn path=/nixos/trunk/; revision=9029
26 lines
509 B
Nix
26 lines
509 B
Nix
{config, pkgs}:
|
|
let
|
|
getCfg = option: config.get ["services" "gw6c" option];
|
|
procps = pkgs.procps;
|
|
gw6cService = import ../services/gw6c {
|
|
inherit (pkgs) stdenv gw6c coreutils
|
|
procps upstart nettools;
|
|
username = getCfg "username";
|
|
password = getCfg "password";
|
|
server = getCfg "server";
|
|
};
|
|
in
|
|
{
|
|
name = "gw6c";
|
|
users = [];
|
|
groups = [];
|
|
job = "
|
|
description \"Gateway6 client\"
|
|
|
|
start on network-interfaces/started
|
|
stop on network-interfaces/stop
|
|
|
|
respawn ${gw6cService}/bin/control start
|
|
";
|
|
}
|