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 {
type = types.int;
type = types.port;
default = 6379;
description = "The port for Redis to listen to.";
};

View file

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

View file

@ -462,7 +462,7 @@ in {
};
port = mkOption {
type = types.int;
type = types.port;
default = 8080;
description = ''
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 {
options = {
port = mkOption {
type = types.int;
type = types.port;
example = 8448;
description = ''
The port to listen for HTTP(S) requests on.

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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