format and remove unused
This commit is contained in:
parent
9924c2e66c
commit
abc5c7cfd2
1 changed files with 10 additions and 11 deletions
|
@ -4,27 +4,26 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib; let
|
||||||
let
|
|
||||||
cfg = config.mySystem.services.haproxy;
|
cfg = config.mySystem.services.haproxy;
|
||||||
serviceUser = "named";
|
in {
|
||||||
in
|
|
||||||
{
|
|
||||||
options.mySystem.services.haproxy = {
|
options.mySystem.services.haproxy = {
|
||||||
enable = mkEnableOption "haproxy" // {
|
enable =
|
||||||
default = false;
|
mkEnableOption "haproxy"
|
||||||
};
|
// {
|
||||||
package = mkPackageOption pkgs "haproxy" { };
|
default = false;
|
||||||
|
};
|
||||||
|
package = mkPackageOption pkgs "haproxy" {};
|
||||||
config = mkOption {
|
config = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
};
|
};
|
||||||
tcpPorts = mkOption {
|
tcpPorts = mkOption {
|
||||||
type = types.listOf types.int;
|
type = types.listOf types.int;
|
||||||
default = [ ];
|
default = [];
|
||||||
};
|
};
|
||||||
udpPorts = mkOption {
|
udpPorts = mkOption {
|
||||||
type = types.listOf types.int;
|
type = types.listOf types.int;
|
||||||
default = [ ];
|
default = [];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue