treewide: use types.port in nixos modules

This commit is contained in:
Daniel Nagy 2022-11-09 22:30:00 +01:00
parent c32d981cdd
commit 095269c862
No known key found for this signature in database
GPG key ID: 1B8E8DCB576FB671
47 changed files with 57 additions and 57 deletions

View file

@ -29,7 +29,7 @@ in {
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = config.services.mpd.network.port; default = config.services.mpd.network.port;
defaultText = literalExpression "config.services.mpd.network.port"; defaultText = literalExpression "config.services.mpd.network.port";
description = lib.mdDoc "The port where MPD is listening."; description = lib.mdDoc "The port where MPD is listening.";

View file

@ -314,7 +314,7 @@ in {
port = mkOption { port = mkOption {
default = 9102; default = 9102;
type = types.int; type = types.port;
description = lib.mdDoc '' description = lib.mdDoc ''
This specifies the port number on which the Client listens for This specifies the port number on which the Client listens for
Director connections. It must agree with the FDPort specified in Director connections. It must agree with the FDPort specified in
@ -374,7 +374,7 @@ in {
port = mkOption { port = mkOption {
default = 9103; default = 9103;
type = types.int; type = types.port;
description = lib.mdDoc '' description = lib.mdDoc ''
Specifies port number on which the Storage daemon listens for Specifies port number on which the Storage daemon listens for
Director connections. Director connections.
@ -451,7 +451,7 @@ in {
port = mkOption { port = mkOption {
default = 9101; default = 9101;
type = types.int; type = types.port;
description = lib.mdDoc '' description = lib.mdDoc ''
Specify the port (a positive integer) on which the Director daemon Specify the port (a positive integer) on which the Director daemon
will listen for Bacula Console connections. This same port number will listen for Bacula Console connections. This same port number

View file

@ -12,7 +12,7 @@ in
port = mkOption { port = mkOption {
default = 8200; default = 8200;
type = types.int; type = types.port;
description = lib.mdDoc '' description = lib.mdDoc ''
Port serving the web interface Port serving the web interface
''; '';

View file

@ -49,7 +49,7 @@ in {
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 4242; default = 4242;
description = lib.mdDoc '' description = lib.mdDoc ''
Which port OpenTSDB listens on. Which port OpenTSDB listens on.

View file

@ -85,7 +85,7 @@ in {
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 8080; default = 8080;
description = lib.mdDoc '' description = lib.mdDoc ''
This tells pgmanage what port to listen on for browser requests. This tells pgmanage what port to listen on for browser requests.

View file

@ -70,7 +70,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 8303; default = 8303;
description = lib.mdDoc '' description = lib.mdDoc ''
Port the server will listen on. Port the server will listen on.

View file

@ -48,7 +48,7 @@ in {
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 4040; default = 4040;
description = lib.mdDoc '' description = lib.mdDoc ''
The port on which Airsonic will listen for The port on which Airsonic will listen for

View file

@ -44,7 +44,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 27701; default = 27701;
description = lib.mdDoc "ankisyncd port"; description = lib.mdDoc "ankisyncd port";
}; };

View file

@ -40,7 +40,7 @@ in {
port = mkOption { port = mkOption {
description = lib.mdDoc "Port number the broker should listen on."; description = lib.mdDoc "Port number the broker should listen on.";
default = 9092; default = 9092;
type = types.int; type = types.port;
}; };
hostname = mkOption { hostname = mkOption {

View file

@ -78,7 +78,7 @@ in
# See https://github.com/soabase/exhibitor/wiki/Running-Exhibitor for what these mean # See https://github.com/soabase/exhibitor/wiki/Running-Exhibitor for what these mean
# General options for any type of config # General options for any type of config
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 8080; default = 8080;
description = lib.mdDoc '' description = lib.mdDoc ''
The port for exhibitor to listen on and communicate with other exhibitors. The port for exhibitor to listen on and communicate with other exhibitors.

View file

@ -90,7 +90,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 3306; default = 3306;
description = lib.mdDoc "Database host port."; description = lib.mdDoc "Database host port.";
}; };
@ -167,7 +167,7 @@ in
}; };
httpPort = mkOption { httpPort = mkOption {
type = types.int; type = types.port;
default = 3000; default = 3000;
description = lib.mdDoc "HTTP listen port."; description = lib.mdDoc "HTTP listen port.";
}; };

View file

@ -21,7 +21,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 4567; default = 4567;
description = lib.mdDoc "Port on which the web server will run."; description = lib.mdDoc "Port on which the web server will run.";
}; };

View file

@ -70,7 +70,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 8000; default = 8000;
description = lib.mdDoc '' description = lib.mdDoc ''
Port to listen on. Port to listen on.

View file

@ -28,7 +28,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 1688; default = 1688;
description = lib.mdDoc "The port on which to listen."; description = lib.mdDoc "The port on which to listen.";
}; };

View file

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

View file

@ -98,7 +98,7 @@ let
port = mkOption { port = mkOption {
description = lib.mdDoc "Port where rippled listens."; description = lib.mdDoc "Port where rippled listens.";
type = types.int; type = types.port;
}; };
protocol = mkOption { protocol = mkOption {

View file

@ -27,7 +27,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 8181; default = 8181;
description = lib.mdDoc "TCP port where Tautulli listens."; description = lib.mdDoc "TCP port where Tautulli listens.";
}; };

View file

@ -97,7 +97,7 @@ in {
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 8095; default = 8095;
description = lib.mdDoc '' description = lib.mdDoc ''
The port on which to listen. The port on which to listen.

View file

@ -33,7 +33,7 @@ in {
port = mkOption { port = mkOption {
description = lib.mdDoc "Zookeeper Client port."; description = lib.mdDoc "Zookeeper Client port.";
default = 2181; default = 2181;
type = types.int; type = types.port;
}; };
id = mkOption { id = mkOption {

View file

@ -24,7 +24,7 @@ in
enable = mkEnableOption (lib.mdDoc "alerta"); enable = mkEnableOption (lib.mdDoc "alerta");
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 5000; default = 5000;
description = lib.mdDoc "Port of Alerta"; description = lib.mdDoc "Port of Alerta";
}; };

View file

@ -22,7 +22,7 @@ in {
port = mkOption { port = mkOption {
default = 8080; default = 8080;
type = types.int; type = types.port;
description = lib.mdDoc "Cadvisor listening port"; description = lib.mdDoc "Cadvisor listening port";
}; };

View file

@ -23,7 +23,7 @@ in {
port = mkOption { port = mkOption {
description = lib.mdDoc "Grafana port."; description = lib.mdDoc "Grafana port.";
default = 3000; default = 3000;
type = types.int; type = types.port;
}; };
}; };
@ -36,7 +36,7 @@ in {
port = mkOption { port = mkOption {
description = lib.mdDoc "Listening port."; description = lib.mdDoc "Listening port.";
default = 8686; default = 8686;
type = types.int; type = types.port;
}; };
templateDir = mkOption { templateDir = mkOption {

View file

@ -33,7 +33,7 @@ let
''; '';
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
example = 587; example = 587;
description = lib.mdDoc '' description = lib.mdDoc ''
Port to use for SMTP. Port to use for SMTP.

View file

@ -17,7 +17,7 @@ in
}; };
torControlPort = mkOption { torControlPort = mkOption {
type = types.int; type = types.port;
default = 9051; default = 9051;
description = lib.mdDoc '' description = lib.mdDoc ''
Tor control port. Tor control port.

View file

@ -94,7 +94,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

@ -68,7 +68,7 @@ in
portNumber = mkOption { portNumber = mkOption {
default = 6667; default = 6667;
type = types.int; type = types.port;
description = lib.mdDoc '' description = lib.mdDoc ''
Number of the port BitlBee will be listening to. Number of the port BitlBee will be listening to.
''; '';

View file

@ -135,7 +135,7 @@ in {
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 5353; default = 5353;
description = lib.mdDoc '' description = lib.mdDoc ''
The DNSCrypt wrapper will listen for DNS queries on this port. The DNSCrypt wrapper will listen for DNS queries on this port.
@ -182,7 +182,7 @@ in {
}; };
upstream.port = mkOption { upstream.port = mkOption {
type = types.int; type = types.port;
default = 53; default = 53;
description = lib.mdDoc '' description = lib.mdDoc ''
The port of the upstream DNS server DNSCrypt will "wrap". The port of the upstream DNS server DNSCrypt will "wrap".

View file

@ -20,7 +20,7 @@ in
port = mkOption { port = mkOption {
default = 2022; default = 2022;
type = types.int; type = types.port;
description = lib.mdDoc '' description = lib.mdDoc ''
The port the server should listen on. Will use the server's default (2022) if not specified. The port the server should listen on. Will use the server's default (2022) if not specified.

View file

@ -71,7 +71,7 @@ in
}; };
upstreamPort = mkOption { upstreamPort = mkOption {
type = types.int; type = types.port;
default = 563; default = 563;
description = lib.mdDoc '' description = lib.mdDoc ''
Upstream server port Upstream server port
@ -112,7 +112,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 5555; default = 5555;
description = lib.mdDoc '' description = lib.mdDoc ''
Proxy listen port Proxy listen port

View file

@ -29,7 +29,7 @@ in
enable = mkEnableOption (lib.mdDoc "Ostinato agent-controller (Drone)"); enable = mkEnableOption (lib.mdDoc "Ostinato agent-controller (Drone)");
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 7878; default = 7878;
description = lib.mdDoc '' description = lib.mdDoc ''
Port to listen on. Port to listen on.

View file

@ -36,7 +36,7 @@ in
}; };
proxyPort = mkOption { proxyPort = mkOption {
type = types.int; type = types.port;
default = 8123; default = 8123;
description = lib.mdDoc "TCP port on which Polipo will listen."; description = lib.mdDoc "TCP port on which Polipo will listen.";
}; };

View file

@ -48,7 +48,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 8388; default = 8388;
description = lib.mdDoc '' description = lib.mdDoc ''
Port which the server uses. Port which the server uses.

View file

@ -186,7 +186,7 @@ in
''; '';
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 8081; default = 8081;
description = lib.mdDoc "TCP port to use for the web server."; description = lib.mdDoc "TCP port to use for the web server.";
}; };

View file

@ -70,7 +70,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 443; default = 443;
description = lib.mdDoc "Listening port."; description = lib.mdDoc "Listening port.";
}; };

View file

@ -65,7 +65,7 @@ in
}; };
port = mkOption { port = mkOption {
type = int; type = port;
default = 3000; default = 3000;
description = lib.mdDoc "Metrics and diagnostics port."; description = lib.mdDoc "Metrics and diagnostics port.";
}; };

View file

@ -29,7 +29,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 33445; default = 33445;
description = lib.mdDoc "Listening port (UDP)."; description = lib.mdDoc "Listening port (UDP).";
}; };

View file

@ -14,7 +14,7 @@ with lib;
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 33445; default = 33445;
description = lib.mdDoc "udp port for toxcore, port-forward to help with connectivity if you run many nodes behind one NAT"; description = lib.mdDoc "udp port for toxcore, port-forward to help with connectivity if you run many nodes behind one NAT";
}; };

View file

@ -54,7 +54,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 3389; default = 3389;
description = lib.mdDoc '' description = lib.mdDoc ''
Specifies on which port the xrdp daemon listens. Specifies on which port the xrdp daemon listens.

View file

@ -19,7 +19,7 @@ in
options.services.zerotierone.port = mkOption { options.services.zerotierone.port = mkOption {
default = 9993; default = 9993;
type = types.int; type = types.port;
description = lib.mdDoc '' description = lib.mdDoc ''
Network port used by ZeroTier. Network port used by ZeroTier.
''; '';

View file

@ -21,7 +21,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 8983; default = 8983;
description = lib.mdDoc "Port on which Solr is ran."; description = lib.mdDoc "Port on which Solr is ran.";
}; };

View file

@ -61,7 +61,7 @@ in
}; };
listenPort = mkOption { listenPort = mkOption {
type = types.int; type = types.port;
default = 8092; default = 8092;
description = lib.mdDoc "Port to listen on."; description = lib.mdDoc "Port to listen on.";
}; };
@ -95,7 +95,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 443; default = 443;
example = 80; example = 80;
description = lib.mdDoc "Port used at the proxy"; description = lib.mdDoc "Port used at the proxy";

View file

@ -96,13 +96,13 @@ in {
}; };
listenHttp = lib.mkOption { listenHttp = lib.mkOption {
type = lib.types.int; type = lib.types.port;
default = 9000; default = 9000;
description = lib.mdDoc "listen port for HTTP server."; description = lib.mdDoc "listen port for HTTP server.";
}; };
listenWeb = lib.mkOption { listenWeb = lib.mkOption {
type = lib.types.int; type = lib.types.port;
default = 9000; default = 9000;
description = lib.mdDoc "listen port for WEB server."; description = lib.mdDoc "listen port for WEB server.";
}; };
@ -177,7 +177,7 @@ in {
}; };
port = lib.mkOption { port = lib.mkOption {
type = lib.types.int; type = lib.types.port;
default = 5432; default = 5432;
description = lib.mdDoc "Database host port."; description = lib.mdDoc "Database host port.";
}; };

View file

@ -69,7 +69,7 @@ in
}; };
listenPort = mkOption { listenPort = mkOption {
type = types.int; type = types.port;
default = 3000; default = 3000;
description = lib.mdDoc '' description = lib.mdDoc ''
Listen port for the virtualhost to use. Listen port for the virtualhost to use.
@ -132,7 +132,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 25; default = 25;
description = lib.mdDoc '' description = lib.mdDoc ''
Port used to connect to SMTP server. Port used to connect to SMTP server.

View file

@ -67,7 +67,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 8080; default = 8080;
description = lib.mdDoc '' description = lib.mdDoc ''
The port number to bind to. The port number to bind to.

View file

@ -208,7 +208,7 @@ let
}; };
port = mkOption { port = mkOption {
type = types.nullOr types.int; type = types.nullOr types.port;
default = null; default = null;
description = lib.mdDoc '' description = lib.mdDoc ''
The database's port. If not set, the default ports will be provided (5432 The database's port. If not set, the default ports will be provided (5432

View file

@ -68,7 +68,7 @@ in
The port youtrack will listen on. The port youtrack will listen on.
''; '';
default = 8080; default = 8080;
type = types.int; type = types.port;
}; };
statePath = mkOption { statePath = mkOption {

View file

@ -25,7 +25,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 22; default = 22;
description = lib.mdDoc '' description = lib.mdDoc ''
Port on which SSH initrd service should listen. Port on which SSH initrd service should listen.