Merge pull request #204001 from nagy/port-types

This commit is contained in:
Naïm Favier 2022-12-02 14:52:35 +01:00 committed by GitHub
commit 2f7f695dd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 24 additions and 24 deletions

View file

@ -46,7 +46,7 @@ in {
port = mkOption { port = mkOption {
default = 8153; default = 8153;
type = types.int; type = types.port;
description = lib.mdDoc '' description = lib.mdDoc ''
Specifies port number on which the Go.CD server HTTP interface listens. Specifies port number on which the Go.CD server HTTP interface listens.
''; '';

View file

@ -122,7 +122,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 3000; default = 3000;
description = lib.mdDoc '' description = lib.mdDoc ''
TCP port the web server should listen to. TCP port the web server should listen to.

View file

@ -122,7 +122,7 @@ in {
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 5984; default = 5984;
description = lib.mdDoc '' description = lib.mdDoc ''
Defined the port number to listen. Defined the port number to listen.

View file

@ -51,7 +51,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 5432; default = 5432;
description = lib.mdDoc '' description = lib.mdDoc ''
The port on which PostgreSQL listens. The port on which PostgreSQL listens.

View file

@ -46,7 +46,7 @@ in
services.factorio = { services.factorio = {
enable = mkEnableOption (lib.mdDoc name); enable = mkEnableOption (lib.mdDoc name);
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 34197; default = 34197;
description = lib.mdDoc '' description = lib.mdDoc ''
The port to which the service should bind. The port to which the service should bind.

View file

@ -16,7 +16,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 = 11300; default = 11300;
}; };

View file

@ -21,7 +21,7 @@ in {
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 8080; default = 8080;
description = lib.mdDoc "Port to bind to for HTTP, set to 0 to disable HTTP."; description = lib.mdDoc "Port to bind to for HTTP, set to 0 to disable HTTP.";
}; };

View file

@ -235,7 +235,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.";
}; };
@ -310,7 +310,7 @@ in
}; };
SSH_PORT = mkOption { SSH_PORT = mkOption {
type = types.int; type = types.port;
default = 22; default = 22;
example = 2222; example = 2222;
description = lib.mdDoc '' description = lib.mdDoc ''

View file

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

View file

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

View file

@ -94,7 +94,7 @@ in {
port = mkOption { port = mkOption {
description = lib.mdDoc "Graphite web frontend port."; description = lib.mdDoc "Graphite web frontend port.";
default = 8080; default = 8080;
type = types.int; type = types.port;
}; };
extraConfig = mkOption { extraConfig = mkOption {

View file

@ -18,7 +18,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 25826; default = 25826;
description = lib.mdDoc "Network address on which to accept collectd binary network packets."; description = lib.mdDoc "Network address on which to accept collectd binary network packets.";
}; };

View file

@ -17,7 +17,7 @@ in {
}; };
port = mkOption { port = mkOption {
description = mdDoc "Port to listen on, falls back to 8080"; description = mdDoc "Port to listen on, falls back to 8080";
type = with types; nullOr int; type = with types; nullOr port;
default = null; default = null;
}; };
authfile = mkOption { authfile = mkOption {

View file

@ -495,7 +495,7 @@ in
ntcp2.enable = mkEnableTrueOption "NTCP2"; ntcp2.enable = mkEnableTrueOption "NTCP2";
ntcp2.published = mkEnableOption (lib.mdDoc "NTCP2 publication"); ntcp2.published = mkEnableOption (lib.mdDoc "NTCP2 publication");
ntcp2.port = mkOption { ntcp2.port = mkOption {
type = types.int; type = types.port;
default = 0; default = 0;
description = lib.mdDoc '' description = lib.mdDoc ''
Port to listen for incoming NTCP2 connections (0=auto). Port to listen for incoming NTCP2 connections (0=auto).

View file

@ -40,7 +40,7 @@ in
enable = mkEnableOption (lib.mdDoc "mtprotoproxy"); enable = mkEnableOption (lib.mdDoc "mtprotoproxy");
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 3256; default = 3256;
description = lib.mdDoc '' description = lib.mdDoc ''
TCP port to accept mtproto connections on. TCP port to accept mtproto connections on.

View file

@ -78,7 +78,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 0; default = 0;
example = 123; example = 123;
description = lib.mdDoc "Port number of the service."; description = lib.mdDoc "Port number of the service.";

View file

@ -43,7 +43,7 @@ in {
port = mkOption { port = mkOption {
description = lib.mdDoc "Kibana listening port"; description = lib.mdDoc "Kibana listening port";
default = 5601; default = 5601;
type = types.int; type = types.port;
}; };
cert = mkOption { cert = mkOption {

View file

@ -56,7 +56,7 @@ in
}; };
listenPort = mkOption { listenPort = mkOption {
type = types.int; type = types.port;
default = 8090; default = 8090;
description = lib.mdDoc "Port to listen on."; description = lib.mdDoc "Port to listen on.";
}; };
@ -78,7 +78,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

@ -56,7 +56,7 @@ in
}; };
listenPort = mkOption { listenPort = mkOption {
type = types.int; type = types.port;
default = 8091; default = 8091;
description = lib.mdDoc "Port to listen on."; description = lib.mdDoc "Port to listen on.";
}; };
@ -78,7 +78,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

@ -76,7 +76,7 @@ in
''; '';
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 3000; default = 3000;
example = 80; example = 80;
description = lib.mdDoc '' description = lib.mdDoc ''

View file

@ -313,7 +313,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.";
}; };