Merge pull request #125221 from NixOS/backport-124404-to-release-21.05
[Backport release-21.05] Small option type adjustments
This commit is contained in:
commit
1fb9572267
|
@ -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.";
|
||||||
};
|
};
|
||||||
|
|
|
@ -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).
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.";
|
||||||
};
|
};
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -359,7 +359,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
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in New Issue