lol

treewide: switch to port type for nixos modules

+36 -36
+1 -1
nixos/modules/services/audio/icecast.nix
··· 74 74 75 75 listen = { 76 76 port = mkOption { 77 - type = types.int; 77 + type = types.port; 78 78 description = lib.mdDoc "TCP port that will be used to accept client connections."; 79 79 default = 8000; 80 80 };
+1 -1
nixos/modules/services/audio/mpd.nix
··· 142 142 }; 143 143 144 144 port = mkOption { 145 - type = types.int; 145 + type = types.port; 146 146 default = 6600; 147 147 description = lib.mdDoc '' 148 148 This setting is the TCP port that is desired for the daemon to get assigned
+2 -2
nixos/modules/services/cluster/kubernetes/kubelet.nix
··· 171 171 port = mkOption { 172 172 description = lib.mdDoc "Kubernetes kubelet healthz port."; 173 173 default = 10248; 174 - type = int; 174 + type = port; 175 175 }; 176 176 }; 177 177 ··· 204 204 port = mkOption { 205 205 description = lib.mdDoc "Kubernetes kubelet info server listening port."; 206 206 default = 10250; 207 - type = int; 207 + type = port; 208 208 }; 209 209 210 210 seedDockerImages = mkOption {
+1 -1
nixos/modules/services/cluster/kubernetes/scheduler.nix
··· 43 43 port = mkOption { 44 44 description = lib.mdDoc "Kubernetes scheduler listening port."; 45 45 default = 10251; 46 - type = int; 46 + type = port; 47 47 }; 48 48 49 49 verbosity = mkOption {
+1 -1
nixos/modules/services/continuous-integration/buildbot/master.nix
··· 206 206 207 207 port = mkOption { 208 208 default = 8010; 209 - type = types.int; 209 + type = types.port; 210 210 description = lib.mdDoc "Specifies port number on which the buildbot HTTP interface listens."; 211 211 }; 212 212
+1 -1
nixos/modules/services/development/jupyter/default.nix
··· 57 57 }; 58 58 59 59 port = mkOption { 60 - type = types.int; 60 + type = types.port; 61 61 default = 8888; 62 62 description = lib.mdDoc '' 63 63 Port number Jupyter will be listening on.
+2 -2
nixos/modules/services/misc/gitlab.nix
··· 560 560 description = lib.mdDoc "GitLab container registry host name."; 561 561 }; 562 562 port = mkOption { 563 - type = types.int; 563 + type = types.port; 564 564 default = 4567; 565 565 description = lib.mdDoc "GitLab container registry port."; 566 566 }; ··· 613 613 }; 614 614 615 615 port = mkOption { 616 - type = types.int; 616 + type = types.port; 617 617 default = 25; 618 618 description = lib.mdDoc "Port of the SMTP server for GitLab."; 619 619 };
+3 -3
nixos/modules/services/misc/ripple-data-api.nix
··· 40 40 port = mkOption { 41 41 description = lib.mdDoc "Ripple data api port"; 42 42 default = 5993; 43 - type = types.int; 43 + type = types.port; 44 44 }; 45 45 46 46 importMode = mkOption { ··· 77 77 port = mkOption { 78 78 description = lib.mdDoc "Ripple data api redis port."; 79 79 default = 5984; 80 - type = types.int; 80 + type = types.port; 81 81 }; 82 82 }; 83 83 ··· 91 91 port = mkOption { 92 92 description = lib.mdDoc "Ripple data api couchdb port."; 93 93 default = 5984; 94 - type = types.int; 94 + type = types.port; 95 95 }; 96 96 97 97 db = mkOption {
+1 -1
nixos/modules/services/monitoring/graphite.nix
··· 225 225 port = mkOption { 226 226 description = lib.mdDoc "Seyren listening port."; 227 227 default = 8081; 228 - type = types.int; 228 + type = types.port; 229 229 }; 230 230 231 231 seyrenUrl = mkOption {
+1 -1
nixos/modules/services/monitoring/kapacitor.nix
··· 66 66 }; 67 67 68 68 port = mkOption { 69 - type = types.int; 69 + type = types.port; 70 70 default = 9092; 71 71 description = lib.mdDoc "Port of Kapacitor"; 72 72 };
+1 -1
nixos/modules/services/monitoring/prometheus/alertmanager.nix
··· 107 107 }; 108 108 109 109 port = mkOption { 110 - type = types.int; 110 + type = types.port; 111 111 default = 9093; 112 112 description = lib.mdDoc '' 113 113 Port to listen on for the web interface and API.
+1 -1
nixos/modules/services/monitoring/zabbix-proxy.nix
··· 102 102 }; 103 103 104 104 port = mkOption { 105 - type = types.int; 105 + type = types.port; 106 106 default = if cfg.database.type == "mysql" then mysql.port else pgsql.port; 107 107 defaultText = literalExpression '' 108 108 if config.${opt.database.type} == "mysql"
+3 -3
nixos/modules/services/network-filesystems/tahoe.nix
··· 18 18 }; 19 19 tub.port = mkOption { 20 20 default = 3458; 21 - type = types.int; 21 + type = types.port; 22 22 description = lib.mdDoc '' 23 23 The port on which the introducer will listen. 24 24 ''; ··· 58 58 }; 59 59 tub.port = mkOption { 60 60 default = 3457; 61 - type = types.int; 61 + type = types.port; 62 62 description = lib.mdDoc '' 63 63 The port on which the tub will listen. 64 64 ··· 80 80 }; 81 81 web.port = mkOption { 82 82 default = 3456; 83 - type = types.int; 83 + type = types.port; 84 84 description = lib.mdDoc '' 85 85 The port on which the Web server will listen. 86 86
+1 -1
nixos/modules/services/networking/morty.nix
··· 50 50 }; 51 51 52 52 port = mkOption { 53 - type = types.int; 53 + type = types.port; 54 54 default = 3000; 55 55 description = lib.mdDoc "Listing port"; 56 56 };
+2 -2
nixos/modules/services/networking/nsd.nix
··· 588 588 }; 589 589 590 590 port = mkOption { 591 - type = types.int; 591 + type = types.port; 592 592 default = 53; 593 593 description = lib.mdDoc '' 594 594 Port the service should bind do. ··· 825 825 }; 826 826 827 827 port = mkOption { 828 - type = types.int; 828 + type = types.port; 829 829 default = 8952; 830 830 description = lib.mdDoc '' 831 831 Port number for remote control operations (uses TLS over TCP).
+1 -1
nixos/modules/services/networking/nylon.nix
··· 81 81 }; 82 82 83 83 port = mkOption { 84 - type = types.int; 84 + type = types.port; 85 85 default = 1080; 86 86 description = lib.mdDoc '' 87 87 What port to listen for client requests, default is 1080.
+2 -2
nixos/modules/services/networking/pdns-recursor.nix
··· 38 38 }; 39 39 40 40 dns.port = mkOption { 41 - type = types.int; 41 + type = types.port; 42 42 default = 53; 43 43 description = lib.mdDoc '' 44 44 Port number Recursor DNS server will bind to. ··· 67 67 }; 68 68 69 69 api.port = mkOption { 70 - type = types.int; 70 + type = types.port; 71 71 default = 8082; 72 72 description = lib.mdDoc '' 73 73 Port number Recursor REST API server will bind to.
+1 -1
nixos/modules/services/networking/redsocks.nix
··· 81 81 }; 82 82 83 83 port = mkOption { 84 - type = types.int; 84 + type = types.port; 85 85 default = 12345; 86 86 description = lib.mdDoc "Port on which redsocks should listen."; 87 87 };
+2 -2
nixos/modules/services/networking/znc/options.nix
··· 18 18 }; 19 19 20 20 port = mkOption { 21 - type = types.ints.u16; 21 + type = types.port; 22 22 default = 6697; 23 23 description = lib.mdDoc '' 24 24 IRC server port. ··· 188 188 189 189 port = mkOption { 190 190 default = 5000; 191 - type = types.int; 191 + type = types.port; 192 192 description = lib.mdDoc '' 193 193 Specifies the port on which to listen. 194 194 '';
+1 -1
nixos/modules/services/search/elasticsearch-curator.nix
··· 50 50 }; 51 51 port = mkOption { 52 52 description = lib.mdDoc "the port that elasticsearch is listening on"; 53 - type = types.int; 53 + type = types.port; 54 54 default = 9200; 55 55 }; 56 56 actionYAML = mkOption {
+1 -1
nixos/modules/services/search/elasticsearch.nix
··· 66 66 port = mkOption { 67 67 description = lib.mdDoc "Elasticsearch port to listen for HTTP traffic."; 68 68 default = 9200; 69 - type = types.int; 69 + type = types.port; 70 70 }; 71 71 72 72 tcp_port = mkOption {
+1 -1
nixos/modules/services/web-apps/hedgedoc.nix
··· 449 449 ''; 450 450 }; 451 451 port = mkOption { 452 - type = types.int; 452 + type = types.port; 453 453 default = 9000; 454 454 description = lib.mdDoc '' 455 455 Minio listen port.
+1 -1
nixos/modules/services/web-apps/limesurvey.nix
··· 49 49 }; 50 50 51 51 port = mkOption { 52 - type = types.int; 52 + type = types.port; 53 53 default = if cfg.database.type == "pgsql" then 5442 else 3306; 54 54 defaultText = literalExpression "3306"; 55 55 description = lib.mdDoc "Database host port.";
+1 -1
nixos/modules/services/web-apps/moodle.nix
··· 96 96 }; 97 97 98 98 port = mkOption { 99 - type = types.int; 99 + type = types.port; 100 100 description = lib.mdDoc "Database host port."; 101 101 default = { 102 102 mysql = 3306;
+2 -2
nixos/modules/services/web-apps/zabbix.nix
··· 51 51 52 52 server = { 53 53 port = mkOption { 54 - type = types.int; 54 + type = types.port; 55 55 description = lib.mdDoc "The port of the Zabbix server to connect to."; 56 56 default = 10051; 57 57 }; ··· 78 78 }; 79 79 80 80 port = mkOption { 81 - type = types.int; 81 + type = types.port; 82 82 default = 83 83 if cfg.database.type == "mysql" then config.services.mysql.port 84 84 else if cfg.database.type == "pgsql" then config.services.postgresql.port
+1 -1
nixos/modules/services/web-servers/nginx/vhost-options.nix
··· 29 29 listen = mkOption { 30 30 type = with types; listOf (submodule { options = { 31 31 addr = mkOption { type = str; description = lib.mdDoc "IP address."; }; 32 - port = mkOption { type = int; description = lib.mdDoc "Port number."; default = 80; }; 32 + port = mkOption { type = port; description = lib.mdDoc "Port number."; default = 80; }; 33 33 ssl = mkOption { type = bool; description = lib.mdDoc "Enable SSL."; default = false; }; 34 34 extraParameters = mkOption { type = listOf str; description = lib.mdDoc "Extra parameters of this listen directive."; default = []; example = [ "backlog=1024" "deferred" ]; }; 35 35 }; });