Merge pull request #124404 from nagy/option-types

Sandro eb5c8e51 9ce667d7

Changed files
+11 -11
nixos
modules
services
+1 -1
nixos/modules/services/databases/redis.nix
···
};
port = mkOption {
-
type = types.int;
+
type = types.port;
default = 6379;
description = "The port for Redis to listen to.";
};
+2 -2
nixos/modules/services/games/terraria.nix
···
};
port = mkOption {
-
type = types.int;
+
type = types.port;
default = 7777;
description = ''
Specifies the port to listen on.
···
};
maxPlayers = mkOption {
-
type = types.int;
+
type = types.ints.u8;
default = 255;
description = ''
Sets the max number of players (between 1 and 255).
+1 -1
nixos/modules/services/misc/gitlab.nix
···
};
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
+1 -1
nixos/modules/services/misc/matrix-synapse.nix
···
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.
+1 -1
nixos/modules/services/networking/firefox/sync-server.nix
···
};
listen.port = mkOption {
-
type = types.int;
+
type = types.port;
default = 5000;
description = ''
Port on which the sync server listen to.
+1 -1
nixos/modules/services/networking/git-daemon.nix
···
};
port = mkOption {
-
type = types.int;
+
type = types.port;
default = 9418;
description = "Port to listen on.";
};
+1 -1
nixos/modules/services/networking/monero.nix
···
};
rpc.port = mkOption {
-
type = types.int;
+
type = types.port;
default = 18081;
description = ''
Port the RPC server will bind to.
+1 -1
nixos/modules/services/web-apps/discourse.nix
···
};
port = lib.mkOption {
-
type = lib.types.int;
+
type = lib.types.port;
default = 25;
description = ''
The port of the SMTP server Discourse should use to
+1 -1
nixos/modules/services/web-servers/darkhttpd.nix
···
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.
+1 -1
nixos/modules/services/web-servers/lighttpd/default.nix
···
port = mkOption {
default = 80;
-
type = types.int;
+
type = types.port;
description = ''
TCP port number for lighttpd to bind to.
'';