treewide/nixos: move number typed port options to types.port (#441136)

h7x4 af678465 b599843b

Changed files
+22 -22
nixos
modules
services
cluster
hadoop
databases
development
games
mail
misc
monitoring
networking
torrent
web-apps
web-servers
varnish
virtualisation
+2 -2
nixos/modules/services/cluster/hadoop/hbase.nix
···
let
ports = port: infoPort: {
port = lib.mkOption {
-
type = lib.types.int;
+
type = lib.types.port;
default = port;
description = "RPC port";
};
infoPort = lib.mkOption {
-
type = lib.types.int;
+
type = lib.types.port;
default = infoPort;
description = "web UI port";
};
+1 -1
nixos/modules/services/databases/monetdb.nix
···
};
port = lib.mkOption {
-
type = lib.types.ints.u16;
+
type = lib.types.port;
default = 50000;
description = "Port to listen on.";
};
+2 -2
nixos/modules/services/development/athens.nix
···
default = "localhost";
};
port = lib.mkOption {
-
type = lib.types.int;
+
type = lib.types.port;
description = "Port for the MySQL database.";
default = 3306;
};
···
default = "localhost";
};
port = lib.mkOption {
-
type = lib.types.int;
+
type = lib.types.port;
description = "Port for the Postgres database.";
default = 5432;
};
+1 -1
nixos/modules/services/games/minetest-server.nix
···
};
port = lib.mkOption {
-
type = lib.types.nullOr lib.types.int;
+
type = lib.types.nullOr lib.types.port;
default = null;
description = ''
Port number to bind to.
+1 -1
nixos/modules/services/mail/postgrey.nix
···
description = "The address to bind to. Localhost if null";
};
port = mkOption {
-
type = natural';
+
type = port;
default = 10030;
description = "Tcp port to bind to";
};
+1 -1
nixos/modules/services/misc/headphones.nix
···
description = "Host to listen on.";
};
port = lib.mkOption {
-
type = lib.types.ints.u16;
+
type = lib.types.port;
default = 8181;
description = "Port to bind to.";
};
+1 -1
nixos/modules/services/misc/moonraker.nix
···
};
port = lib.mkOption {
-
type = lib.types.ints.unsigned;
+
type = lib.types.port;
default = 7125;
description = "The port to listen on.";
};
+1 -1
nixos/modules/services/misc/servarr/settings-options.nix
···
};
server = {
port = lib.mkOption {
-
type = lib.types.int;
+
type = lib.types.port;
description = "Port Number";
default = port;
};
+1 -1
nixos/modules/services/misc/sickbeard.nix
···
description = "Path to config file.";
};
port = lib.mkOption {
-
type = lib.types.ints.u16;
+
type = lib.types.port;
default = 8081;
description = "Port to bind to.";
};
+2 -2
nixos/modules/services/monitoring/statsd.nix
···
port = lib.mkOption {
description = "Port that stats listens for messages on over UDP";
default = 8125;
-
type = lib.types.int;
+
type = lib.types.port;
};
mgmt_address = lib.mkOption {
···
mgmt_port = lib.mkOption {
description = "Port to run the management TCP interface on";
default = 8126;
-
type = lib.types.int;
+
type = lib.types.port;
};
backends = lib.mkOption {
+1 -1
nixos/modules/services/networking/i2pd.nix
···
};
port = mkOption {
-
type = with types; nullOr int;
+
type = with types; nullOr port;
default = null;
description = ''
I2P listen port. If no one is given the router will pick between 9111 and 30777.
+1 -1
nixos/modules/services/networking/iperf3.nix
···
enable = mkEnableOption "iperf3 network throughput testing server";
package = mkPackageOption pkgs "iperf3" { };
port = mkOption {
-
type = types.ints.u16;
+
type = types.port;
default = 5201;
description = "Server port to listen on for iperf3 client requests.";
};
+1 -1
nixos/modules/services/networking/nghttpx/server-options.nix
···
'';
};
port = lib.mkOption {
-
type = lib.types.int;
+
type = lib.types.port;
example = 5088;
description = ''
Server host port.
+1 -1
nixos/modules/services/networking/ssh/sshd.nix
···
'';
};
port = lib.mkOption {
-
type = lib.types.nullOr lib.types.int;
+
type = lib.types.nullOr lib.types.port;
default = null;
description = ''
Port to listen to.
+1 -1
nixos/modules/services/networking/tinyproxy.nix
···
'';
};
Port = mkOption {
-
type = types.int;
+
type = types.port;
default = 8888;
description = ''
Specify which port to listen to.
+1 -1
nixos/modules/services/torrent/flood.nix
···
description = "Whether to open the firewall for the port in {option}`services.flood.port`.";
};
port = lib.mkOption {
-
type = lib.types.int;
+
type = lib.types.port;
description = "Port to bind webserver.";
default = 3000;
example = 3001;
+1 -1
nixos/modules/services/web-apps/selfoss.nix
···
};
port = mkOption {
-
type = types.nullOr types.int;
+
type = types.nullOr types.port;
default = null;
description = ''
The database's port. If not set, the default ports will be
+1 -1
nixos/modules/services/web-servers/varnish/default.nix
···
port = mkOption {
description = "The port to use for IP sockets. If port is not specified, port 80 (http) is used.";
default = null;
-
type = with types; nullOr int;
+
type = with types; nullOr port;
};
proto = mkOption {
description = "PROTO can be 'HTTP' (the default) or 'PROXY'. Both version 1 and 2 of the proxy protocol can be used.";
+1 -1
nixos/modules/virtualisation/waagent.nix
···
};
Port = lib.mkOption {
-
type = types.nullOr types.int;
+
type = types.nullOr types.port;
default = null;
description = ''
If you set http proxy, waagent will use this proxy to access the Internet.