treewide: switch to port type for nixos modules
This commit is contained in:
parent
5108c96e98
commit
ad866e565d
26 changed files with 36 additions and 36 deletions
|
@ -74,7 +74,7 @@ in {
|
|||
|
||||
listen = {
|
||||
port = mkOption {
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
description = lib.mdDoc "TCP port that will be used to accept client connections.";
|
||||
default = 8000;
|
||||
};
|
||||
|
|
|
@ -142,7 +142,7 @@ in {
|
|||
};
|
||||
|
||||
port = mkOption {
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
default = 6600;
|
||||
description = lib.mdDoc ''
|
||||
This setting is the TCP port that is desired for the daemon to get assigned
|
||||
|
|
|
@ -171,7 +171,7 @@ in
|
|||
port = mkOption {
|
||||
description = lib.mdDoc "Kubernetes kubelet healthz port.";
|
||||
default = 10248;
|
||||
type = int;
|
||||
type = port;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -204,7 +204,7 @@ in
|
|||
port = mkOption {
|
||||
description = lib.mdDoc "Kubernetes kubelet info server listening port.";
|
||||
default = 10250;
|
||||
type = int;
|
||||
type = port;
|
||||
};
|
||||
|
||||
seedDockerImages = mkOption {
|
||||
|
|
|
@ -43,7 +43,7 @@ in
|
|||
port = mkOption {
|
||||
description = lib.mdDoc "Kubernetes scheduler listening port.";
|
||||
default = 10251;
|
||||
type = int;
|
||||
type = port;
|
||||
};
|
||||
|
||||
verbosity = mkOption {
|
||||
|
|
|
@ -206,7 +206,7 @@ in {
|
|||
|
||||
port = mkOption {
|
||||
default = 8010;
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
description = lib.mdDoc "Specifies port number on which the buildbot HTTP interface listens.";
|
||||
};
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ in {
|
|||
};
|
||||
|
||||
port = mkOption {
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
default = 8888;
|
||||
description = lib.mdDoc ''
|
||||
Port number Jupyter will be listening on.
|
||||
|
|
|
@ -560,7 +560,7 @@ in {
|
|||
description = lib.mdDoc "GitLab container registry host name.";
|
||||
};
|
||||
port = mkOption {
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
default = 4567;
|
||||
description = lib.mdDoc "GitLab container registry port.";
|
||||
};
|
||||
|
@ -613,7 +613,7 @@ in {
|
|||
};
|
||||
|
||||
port = mkOption {
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
default = 25;
|
||||
description = lib.mdDoc "Port of the SMTP server for GitLab.";
|
||||
};
|
||||
|
|
|
@ -40,7 +40,7 @@ in {
|
|||
port = mkOption {
|
||||
description = lib.mdDoc "Ripple data api port";
|
||||
default = 5993;
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
};
|
||||
|
||||
importMode = mkOption {
|
||||
|
@ -77,7 +77,7 @@ in {
|
|||
port = mkOption {
|
||||
description = lib.mdDoc "Ripple data api redis port.";
|
||||
default = 5984;
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -91,7 +91,7 @@ in {
|
|||
port = mkOption {
|
||||
description = lib.mdDoc "Ripple data api couchdb port.";
|
||||
default = 5984;
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
};
|
||||
|
||||
db = mkOption {
|
||||
|
|
|
@ -225,7 +225,7 @@ in {
|
|||
port = mkOption {
|
||||
description = lib.mdDoc "Seyren listening port.";
|
||||
default = 8081;
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
};
|
||||
|
||||
seyrenUrl = mkOption {
|
||||
|
|
|
@ -66,7 +66,7 @@ in
|
|||
};
|
||||
|
||||
port = mkOption {
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
default = 9092;
|
||||
description = lib.mdDoc "Port of Kapacitor";
|
||||
};
|
||||
|
|
|
@ -107,7 +107,7 @@ in {
|
|||
};
|
||||
|
||||
port = mkOption {
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
default = 9093;
|
||||
description = lib.mdDoc ''
|
||||
Port to listen on for the web interface and API.
|
||||
|
|
|
@ -102,7 +102,7 @@ in
|
|||
};
|
||||
|
||||
port = mkOption {
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
default = if cfg.database.type == "mysql" then mysql.port else pgsql.port;
|
||||
defaultText = literalExpression ''
|
||||
if config.${opt.database.type} == "mysql"
|
||||
|
|
|
@ -18,7 +18,7 @@ in
|
|||
};
|
||||
tub.port = mkOption {
|
||||
default = 3458;
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
description = lib.mdDoc ''
|
||||
The port on which the introducer will listen.
|
||||
'';
|
||||
|
@ -58,7 +58,7 @@ in
|
|||
};
|
||||
tub.port = mkOption {
|
||||
default = 3457;
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
description = lib.mdDoc ''
|
||||
The port on which the tub will listen.
|
||||
|
||||
|
@ -80,7 +80,7 @@ in
|
|||
};
|
||||
web.port = mkOption {
|
||||
default = 3456;
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
description = lib.mdDoc ''
|
||||
The port on which the Web server will listen.
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ in
|
|||
};
|
||||
|
||||
port = mkOption {
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
default = 3000;
|
||||
description = lib.mdDoc "Listing port";
|
||||
};
|
||||
|
|
|
@ -588,7 +588,7 @@ in
|
|||
};
|
||||
|
||||
port = mkOption {
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
default = 53;
|
||||
description = lib.mdDoc ''
|
||||
Port the service should bind do.
|
||||
|
@ -825,7 +825,7 @@ in
|
|||
};
|
||||
|
||||
port = mkOption {
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
default = 8952;
|
||||
description = lib.mdDoc ''
|
||||
Port number for remote control operations (uses TLS over TCP).
|
||||
|
|
|
@ -81,7 +81,7 @@ let
|
|||
};
|
||||
|
||||
port = mkOption {
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
default = 1080;
|
||||
description = lib.mdDoc ''
|
||||
What port to listen for client requests, default is 1080.
|
||||
|
|
|
@ -38,7 +38,7 @@ in {
|
|||
};
|
||||
|
||||
dns.port = mkOption {
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
default = 53;
|
||||
description = lib.mdDoc ''
|
||||
Port number Recursor DNS server will bind to.
|
||||
|
@ -67,7 +67,7 @@ in {
|
|||
};
|
||||
|
||||
api.port = mkOption {
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
default = 8082;
|
||||
description = lib.mdDoc ''
|
||||
Port number Recursor REST API server will bind to.
|
||||
|
|
|
@ -81,7 +81,7 @@ in
|
|||
};
|
||||
|
||||
port = mkOption {
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
default = 12345;
|
||||
description = lib.mdDoc "Port on which redsocks should listen.";
|
||||
};
|
||||
|
|
|
@ -18,7 +18,7 @@ let
|
|||
};
|
||||
|
||||
port = mkOption {
|
||||
type = types.ints.u16;
|
||||
type = types.port;
|
||||
default = 6697;
|
||||
description = lib.mdDoc ''
|
||||
IRC server port.
|
||||
|
@ -188,7 +188,7 @@ in
|
|||
|
||||
port = mkOption {
|
||||
default = 5000;
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
description = lib.mdDoc ''
|
||||
Specifies the port on which to listen.
|
||||
'';
|
||||
|
|
|
@ -50,7 +50,7 @@ in {
|
|||
};
|
||||
port = mkOption {
|
||||
description = lib.mdDoc "the port that elasticsearch is listening on";
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
default = 9200;
|
||||
};
|
||||
actionYAML = mkOption {
|
||||
|
|
|
@ -66,7 +66,7 @@ in
|
|||
port = mkOption {
|
||||
description = lib.mdDoc "Elasticsearch port to listen for HTTP traffic.";
|
||||
default = 9200;
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
};
|
||||
|
||||
tcp_port = mkOption {
|
||||
|
|
|
@ -449,7 +449,7 @@ in
|
|||
'';
|
||||
};
|
||||
port = mkOption {
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
default = 9000;
|
||||
description = lib.mdDoc ''
|
||||
Minio listen port.
|
||||
|
|
|
@ -49,7 +49,7 @@ in
|
|||
};
|
||||
|
||||
port = mkOption {
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
default = if cfg.database.type == "pgsql" then 5442 else 3306;
|
||||
defaultText = literalExpression "3306";
|
||||
description = lib.mdDoc "Database host port.";
|
||||
|
|
|
@ -96,7 +96,7 @@ in
|
|||
};
|
||||
|
||||
port = mkOption {
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
description = lib.mdDoc "Database host port.";
|
||||
default = {
|
||||
mysql = 3306;
|
||||
|
|
|
@ -51,7 +51,7 @@ in
|
|||
|
||||
server = {
|
||||
port = mkOption {
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
description = lib.mdDoc "The port of the Zabbix server to connect to.";
|
||||
default = 10051;
|
||||
};
|
||||
|
@ -78,7 +78,7 @@ in
|
|||
};
|
||||
|
||||
port = mkOption {
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
default =
|
||||
if cfg.database.type == "mysql" then config.services.mysql.port
|
||||
else if cfg.database.type == "pgsql" then config.services.postgresql.port
|
||||
|
|
|
@ -29,7 +29,7 @@ with lib;
|
|||
listen = mkOption {
|
||||
type = with types; listOf (submodule { options = {
|
||||
addr = mkOption { type = str; description = lib.mdDoc "IP address."; };
|
||||
port = mkOption { type = int; description = lib.mdDoc "Port number."; default = 80; };
|
||||
port = mkOption { type = port; description = lib.mdDoc "Port number."; default = 80; };
|
||||
ssl = mkOption { type = bool; description = lib.mdDoc "Enable SSL."; default = false; };
|
||||
extraParameters = mkOption { type = listOf str; description = lib.mdDoc "Extra parameters of this listen directive."; default = []; example = [ "backlog=1024" "deferred" ]; };
|
||||
}; });
|
||||
|
|
Loading…
Reference in a new issue