0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

treewide: switch to port type for nixos modules

This commit is contained in:
Daniel Nagy 2022-11-30 17:15:00 +01:00
parent 5108c96e98
commit ad866e565d
No known key found for this signature in database
GPG key ID: 1B8E8DCB576FB671
26 changed files with 36 additions and 36 deletions

View file

@ -74,7 +74,7 @@ in {
listen = { listen = {
port = mkOption { port = mkOption {
type = types.int; type = types.port;
description = lib.mdDoc "TCP port that will be used to accept client connections."; description = lib.mdDoc "TCP port that will be used to accept client connections.";
default = 8000; default = 8000;
}; };

View file

@ -142,7 +142,7 @@ in {
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 6600; default = 6600;
description = lib.mdDoc '' description = lib.mdDoc ''
This setting is the TCP port that is desired for the daemon to get assigned This setting is the TCP port that is desired for the daemon to get assigned

View file

@ -171,7 +171,7 @@ in
port = mkOption { port = mkOption {
description = lib.mdDoc "Kubernetes kubelet healthz port."; description = lib.mdDoc "Kubernetes kubelet healthz port.";
default = 10248; default = 10248;
type = int; type = port;
}; };
}; };
@ -204,7 +204,7 @@ in
port = mkOption { port = mkOption {
description = lib.mdDoc "Kubernetes kubelet info server listening port."; description = lib.mdDoc "Kubernetes kubelet info server listening port.";
default = 10250; default = 10250;
type = int; type = port;
}; };
seedDockerImages = mkOption { seedDockerImages = mkOption {

View file

@ -43,7 +43,7 @@ in
port = mkOption { port = mkOption {
description = lib.mdDoc "Kubernetes scheduler listening port."; description = lib.mdDoc "Kubernetes scheduler listening port.";
default = 10251; default = 10251;
type = int; type = port;
}; };
verbosity = mkOption { verbosity = mkOption {

View file

@ -206,7 +206,7 @@ in {
port = mkOption { port = mkOption {
default = 8010; default = 8010;
type = types.int; type = types.port;
description = lib.mdDoc "Specifies port number on which the buildbot HTTP interface listens."; description = lib.mdDoc "Specifies port number on which the buildbot HTTP interface listens.";
}; };

View file

@ -57,7 +57,7 @@ in {
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 8888; default = 8888;
description = lib.mdDoc '' description = lib.mdDoc ''
Port number Jupyter will be listening on. Port number Jupyter will be listening on.

View file

@ -560,7 +560,7 @@ in {
description = lib.mdDoc "GitLab container registry host name."; description = lib.mdDoc "GitLab container registry host name.";
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 4567; default = 4567;
description = lib.mdDoc "GitLab container registry port."; description = lib.mdDoc "GitLab container registry port.";
}; };
@ -613,7 +613,7 @@ in {
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 25; default = 25;
description = lib.mdDoc "Port of the SMTP server for GitLab."; description = lib.mdDoc "Port of the SMTP server for GitLab.";
}; };

View file

@ -40,7 +40,7 @@ in {
port = mkOption { port = mkOption {
description = lib.mdDoc "Ripple data api port"; description = lib.mdDoc "Ripple data api port";
default = 5993; default = 5993;
type = types.int; type = types.port;
}; };
importMode = mkOption { importMode = mkOption {
@ -77,7 +77,7 @@ in {
port = mkOption { port = mkOption {
description = lib.mdDoc "Ripple data api redis port."; description = lib.mdDoc "Ripple data api redis port.";
default = 5984; default = 5984;
type = types.int; type = types.port;
}; };
}; };
@ -91,7 +91,7 @@ in {
port = mkOption { port = mkOption {
description = lib.mdDoc "Ripple data api couchdb port."; description = lib.mdDoc "Ripple data api couchdb port.";
default = 5984; default = 5984;
type = types.int; type = types.port;
}; };
db = mkOption { db = mkOption {

View file

@ -225,7 +225,7 @@ in {
port = mkOption { port = mkOption {
description = lib.mdDoc "Seyren listening port."; description = lib.mdDoc "Seyren listening port.";
default = 8081; default = 8081;
type = types.int; type = types.port;
}; };
seyrenUrl = mkOption { seyrenUrl = mkOption {

View file

@ -66,7 +66,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 9092; default = 9092;
description = lib.mdDoc "Port of Kapacitor"; description = lib.mdDoc "Port of Kapacitor";
}; };

View file

@ -107,7 +107,7 @@ in {
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 9093; default = 9093;
description = lib.mdDoc '' description = lib.mdDoc ''
Port to listen on for the web interface and API. Port to listen on for the web interface and API.

View file

@ -102,7 +102,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = if cfg.database.type == "mysql" then mysql.port else pgsql.port; default = if cfg.database.type == "mysql" then mysql.port else pgsql.port;
defaultText = literalExpression '' defaultText = literalExpression ''
if config.${opt.database.type} == "mysql" if config.${opt.database.type} == "mysql"

View file

@ -18,7 +18,7 @@ in
}; };
tub.port = mkOption { tub.port = mkOption {
default = 3458; default = 3458;
type = types.int; type = types.port;
description = lib.mdDoc '' description = lib.mdDoc ''
The port on which the introducer will listen. The port on which the introducer will listen.
''; '';
@ -58,7 +58,7 @@ in
}; };
tub.port = mkOption { tub.port = mkOption {
default = 3457; default = 3457;
type = types.int; type = types.port;
description = lib.mdDoc '' description = lib.mdDoc ''
The port on which the tub will listen. The port on which the tub will listen.
@ -80,7 +80,7 @@ in
}; };
web.port = mkOption { web.port = mkOption {
default = 3456; default = 3456;
type = types.int; type = types.port;
description = lib.mdDoc '' description = lib.mdDoc ''
The port on which the Web server will listen. The port on which the Web server will listen.

View file

@ -50,7 +50,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 3000; default = 3000;
description = lib.mdDoc "Listing port"; description = lib.mdDoc "Listing port";
}; };

View file

@ -588,7 +588,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 53; default = 53;
description = lib.mdDoc '' description = lib.mdDoc ''
Port the service should bind do. Port the service should bind do.
@ -825,7 +825,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 8952; default = 8952;
description = lib.mdDoc '' description = lib.mdDoc ''
Port number for remote control operations (uses TLS over TCP). Port number for remote control operations (uses TLS over TCP).

View file

@ -81,7 +81,7 @@ let
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 1080; default = 1080;
description = lib.mdDoc '' description = lib.mdDoc ''
What port to listen for client requests, default is 1080. What port to listen for client requests, default is 1080.

View file

@ -38,7 +38,7 @@ in {
}; };
dns.port = mkOption { dns.port = mkOption {
type = types.int; type = types.port;
default = 53; default = 53;
description = lib.mdDoc '' description = lib.mdDoc ''
Port number Recursor DNS server will bind to. Port number Recursor DNS server will bind to.
@ -67,7 +67,7 @@ in {
}; };
api.port = mkOption { api.port = mkOption {
type = types.int; type = types.port;
default = 8082; default = 8082;
description = lib.mdDoc '' description = lib.mdDoc ''
Port number Recursor REST API server will bind to. Port number Recursor REST API server will bind to.

View file

@ -81,7 +81,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 12345; default = 12345;
description = lib.mdDoc "Port on which redsocks should listen."; description = lib.mdDoc "Port on which redsocks should listen.";
}; };

View file

@ -18,7 +18,7 @@ let
}; };
port = mkOption { port = mkOption {
type = types.ints.u16; type = types.port;
default = 6697; default = 6697;
description = lib.mdDoc '' description = lib.mdDoc ''
IRC server port. IRC server port.
@ -188,7 +188,7 @@ in
port = mkOption { port = mkOption {
default = 5000; default = 5000;
type = types.int; type = types.port;
description = lib.mdDoc '' description = lib.mdDoc ''
Specifies the port on which to listen. Specifies the port on which to listen.
''; '';

View file

@ -50,7 +50,7 @@ in {
}; };
port = mkOption { port = mkOption {
description = lib.mdDoc "the port that elasticsearch is listening on"; description = lib.mdDoc "the port that elasticsearch is listening on";
type = types.int; type = types.port;
default = 9200; default = 9200;
}; };
actionYAML = mkOption { actionYAML = mkOption {

View file

@ -66,7 +66,7 @@ in
port = mkOption { port = mkOption {
description = lib.mdDoc "Elasticsearch port to listen for HTTP traffic."; description = lib.mdDoc "Elasticsearch port to listen for HTTP traffic.";
default = 9200; default = 9200;
type = types.int; type = types.port;
}; };
tcp_port = mkOption { tcp_port = mkOption {

View file

@ -449,7 +449,7 @@ in
''; '';
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 9000; default = 9000;
description = lib.mdDoc '' description = lib.mdDoc ''
Minio listen port. Minio listen port.

View file

@ -49,7 +49,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = if cfg.database.type == "pgsql" then 5442 else 3306; default = if cfg.database.type == "pgsql" then 5442 else 3306;
defaultText = literalExpression "3306"; defaultText = literalExpression "3306";
description = lib.mdDoc "Database host port."; description = lib.mdDoc "Database host port.";

View file

@ -96,7 +96,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
description = lib.mdDoc "Database host port."; description = lib.mdDoc "Database host port.";
default = { default = {
mysql = 3306; mysql = 3306;

View file

@ -51,7 +51,7 @@ in
server = { server = {
port = mkOption { port = mkOption {
type = types.int; type = types.port;
description = lib.mdDoc "The port of the Zabbix server to connect to."; description = lib.mdDoc "The port of the Zabbix server to connect to.";
default = 10051; default = 10051;
}; };
@ -78,7 +78,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = default =
if cfg.database.type == "mysql" then config.services.mysql.port if cfg.database.type == "mysql" then config.services.mysql.port
else if cfg.database.type == "pgsql" then config.services.postgresql.port else if cfg.database.type == "pgsql" then config.services.postgresql.port

View file

@ -29,7 +29,7 @@ with lib;
listen = mkOption { listen = mkOption {
type = with types; listOf (submodule { options = { type = with types; listOf (submodule { options = {
addr = mkOption { type = str; description = lib.mdDoc "IP address."; }; 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; }; 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" ]; }; extraParameters = mkOption { type = listOf str; description = lib.mdDoc "Extra parameters of this listen directive."; default = []; example = [ "backlog=1024" "deferred" ]; };
}; }); }; });