treewide: switch to port type for nixos modules

Changed files
+24 -24
nixos
modules
+1 -1
nixos/modules/services/continuous-integration/gocd-server/default.nix
···
port = mkOption {
default = 8153;
-
type = types.int;
+
type = types.port;
description = lib.mdDoc ''
Specifies port number on which the Go.CD server HTTP interface listens.
'';
+1 -1
nixos/modules/services/continuous-integration/hydra/default.nix
···
};
port = mkOption {
-
type = types.int;
+
type = types.port;
default = 3000;
description = lib.mdDoc ''
TCP port the web server should listen to.
+1 -1
nixos/modules/services/databases/couchdb.nix
···
};
port = mkOption {
-
type = types.int;
+
type = types.port;
default = 5984;
description = lib.mdDoc ''
Defined the port number to listen.
+1 -1
nixos/modules/services/databases/postgresql.nix
···
};
port = mkOption {
-
type = types.int;
+
type = types.port;
default = 5432;
description = lib.mdDoc ''
The port on which PostgreSQL listens.
+1 -1
nixos/modules/services/games/factorio.nix
···
services.factorio = {
enable = mkEnableOption (lib.mdDoc name);
port = mkOption {
-
type = types.int;
+
type = types.port;
default = 34197;
description = lib.mdDoc ''
The port to which the service should bind.
+1 -1
nixos/modules/services/misc/beanstalkd.nix
···
listen = {
port = mkOption {
-
type = types.int;
+
type = types.port;
description = lib.mdDoc "TCP port that will be used to accept client connections.";
default = 11300;
};
+1 -1
nixos/modules/services/misc/domoticz.nix
···
};
port = mkOption {
-
type = types.int;
+
type = types.port;
default = 8080;
description = lib.mdDoc "Port to bind to for HTTP, set to 0 to disable HTTP.";
};
+2 -2
nixos/modules/services/misc/gitea.nix
···
};
httpPort = mkOption {
-
type = types.int;
+
type = types.port;
default = 3000;
description = lib.mdDoc "HTTP listen port.";
};
···
};
SSH_PORT = mkOption {
-
type = types.int;
+
type = types.port;
default = 22;
example = 2222;
description = lib.mdDoc ''
+1 -1
nixos/modules/services/misc/mediatomb.nix
···
};
port = mkOption {
-
type = types.int;
+
type = types.port;
default = 49152;
description = lib.mdDoc ''
The network port to listen on.
+1 -1
nixos/modules/services/misc/osrm.nix
···
};
port = mkOption {
-
type = types.int;
+
type = types.port;
default = 5000;
description = lib.mdDoc "Port on which the web server will run.";
};
+1 -1
nixos/modules/services/monitoring/graphite.nix
···
port = mkOption {
description = lib.mdDoc "Graphite web frontend port.";
default = 8080;
-
type = types.int;
+
type = types.port;
};
extraConfig = mkOption {
+1 -1
nixos/modules/services/monitoring/prometheus/exporters/collectd.nix
···
};
port = mkOption {
-
type = types.int;
+
type = types.port;
default = 25826;
description = lib.mdDoc "Network address on which to accept collectd binary network packets.";
};
+1 -1
nixos/modules/services/networking/chisel-server.nix
···
};
port = mkOption {
description = mdDoc "Port to listen on, falls back to 8080";
-
type = with types; nullOr int;
+
type = with types; nullOr port;
default = null;
};
authfile = mkOption {
+1 -1
nixos/modules/services/networking/i2pd.nix
···
ntcp2.enable = mkEnableTrueOption "NTCP2";
ntcp2.published = mkEnableOption (lib.mdDoc "NTCP2 publication");
ntcp2.port = mkOption {
-
type = types.int;
+
type = types.port;
default = 0;
description = lib.mdDoc ''
Port to listen for incoming NTCP2 connections (0=auto).
+1 -1
nixos/modules/services/networking/mtprotoproxy.nix
···
enable = mkEnableOption (lib.mdDoc "mtprotoproxy");
port = mkOption {
-
type = types.int;
+
type = types.port;
default = 3256;
description = lib.mdDoc ''
TCP port to accept mtproto connections on.
+1 -1
nixos/modules/services/networking/xinetd.nix
···
};
port = mkOption {
-
type = types.int;
+
type = types.port;
default = 0;
example = 123;
description = lib.mdDoc "Port number of the service.";
+1 -1
nixos/modules/services/search/kibana.nix
···
port = mkOption {
description = lib.mdDoc "Kibana listening port";
default = 5601;
-
type = types.int;
+
type = types.port;
};
cert = mkOption {
+2 -2
nixos/modules/services/web-apps/atlassian/confluence.nix
···
};
listenPort = mkOption {
-
type = types.int;
+
type = types.port;
default = 8090;
description = lib.mdDoc "Port to listen on.";
};
···
};
port = mkOption {
-
type = types.int;
+
type = types.port;
default = 443;
example = 80;
description = lib.mdDoc "Port used at the proxy";
+2 -2
nixos/modules/services/web-apps/atlassian/jira.nix
···
};
listenPort = mkOption {
-
type = types.int;
+
type = types.port;
default = 8091;
description = lib.mdDoc "Port to listen on.";
};
···
};
port = mkOption {
-
type = types.int;
+
type = types.port;
default = 443;
example = 80;
description = lib.mdDoc "Port used at the proxy";
+1 -1
nixos/modules/services/web-apps/hedgedoc.nix
···
'';
};
port = mkOption {
-
type = types.int;
+
type = types.port;
default = 3000;
example = 80;
description = lib.mdDoc ''
+1 -1
nixos/modules/services/web-apps/mastodon.nix
···
};
port = lib.mkOption {
-
type = lib.types.int;
+
type = lib.types.port;
default = 5432;
description = lib.mdDoc "Database host port.";
};