Merge pull request #124404 from nagy/option-types

This commit is contained in:
Sandro 2021-06-01 15:12:16 +02:00 committed by GitHub
commit eb5c8e51b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 11 additions and 11 deletions

View file

@ -52,7 +52,7 @@ in {
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 6379; default = 6379;
description = "The port for Redis to listen to."; description = "The port for Redis to listen to.";
}; };

View file

@ -42,7 +42,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 7777; default = 7777;
description = '' description = ''
Specifies the port to listen on. Specifies the port to listen on.
@ -50,7 +50,7 @@ in
}; };
maxPlayers = mkOption { maxPlayers = mkOption {
type = types.int; type = types.ints.u8;
default = 255; default = 255;
description = '' description = ''
Sets the max number of players (between 1 and 255). Sets the max number of players (between 1 and 255).

View file

@ -462,7 +462,7 @@ in {
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 8080; default = 8080;
description = '' description = ''
GitLab server port for copy-paste URLs, e.g. 80 or 443 if you're GitLab server port for copy-paste URLs, e.g. 80 or 443 if you're

View file

@ -231,7 +231,7 @@ in {
type = types.listOf (types.submodule { type = types.listOf (types.submodule {
options = { options = {
port = mkOption { port = mkOption {
type = types.int; type = types.port;
example = 8448; example = 8448;
description = '' description = ''
The port to listen for HTTP(S) requests on. The port to listen for HTTP(S) requests on.

View file

@ -67,7 +67,7 @@ in
}; };
listen.port = mkOption { listen.port = mkOption {
type = types.int; type = types.port;
default = 5000; default = 5000;
description = '' description = ''
Port on which the sync server listen to. Port on which the sync server listen to.

View file

@ -74,7 +74,7 @@ in
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.port;
default = 9418; default = 9418;
description = "Port to listen on."; description = "Port to listen on.";
}; };

View file

@ -110,7 +110,7 @@ in
}; };
rpc.port = mkOption { rpc.port = mkOption {
type = types.int; type = types.port;
default = 18081; default = 18081;
description = '' description = ''
Port the RPC server will bind to. Port the RPC server will bind to.

View file

@ -356,7 +356,7 @@ in
}; };
port = lib.mkOption { port = lib.mkOption {
type = lib.types.int; type = lib.types.port;
default = 25; default = 25;
description = '' description = ''
The port of the SMTP server Discourse should use to The port of the SMTP server Discourse should use to

View file

@ -19,7 +19,7 @@ in {
port = mkOption { port = mkOption {
default = 80; default = 80;
type = ints.u16; type = types.port;
description = '' description = ''
Port to listen on. Port to listen on.
Pass 0 to let the system choose any free port for you. Pass 0 to let the system choose any free port for you.

View file

@ -134,7 +134,7 @@ in
port = mkOption { port = mkOption {
default = 80; default = 80;
type = types.int; type = types.port;
description = '' description = ''
TCP port number for lighttpd to bind to. TCP port number for lighttpd to bind to.
''; '';