···88 options = {
99 hardware.brillo = {
1010 enable = mkEnableOption (lib.mdDoc ''
1111- Enable brillo in userspace.
1212- This will allow brightness control from users in the video group.
1111+ brillo in userspace.
1212+ This will allow brightness control from users in the video group
1313 '');
1414 };
1515 };
1616-17161817 config = mkIf cfg.enable {
1918 services.udev.packages = [ pkgs.brillo ];
+1-1
nixos/modules/hardware/ubertooth.nix
···1010 };
1111in {
1212 options.hardware.ubertooth = {
1313- enable = mkEnableOption (lib.mdDoc "Enable the Ubertooth software and its udev rules.");
1313+ enable = mkEnableOption (lib.mdDoc "Ubertooth software and its udev rules");
14141515 group = mkOption {
1616 type = types.str;
···2929 };
30303131 port = mkOption {
3232- type = types.int;
3232+ type = types.port;
3333 default = config.services.mpd.network.port;
3434 defaultText = literalExpression "config.services.mpd.network.port";
3535 description = lib.mdDoc "The port where MPD is listening.";
+3-3
nixos/modules/services/backup/bacula.nix
···314314315315 port = mkOption {
316316 default = 9102;
317317- type = types.int;
317317+ type = types.port;
318318 description = lib.mdDoc ''
319319 This specifies the port number on which the Client listens for
320320 Director connections. It must agree with the FDPort specified in
···374374375375 port = mkOption {
376376 default = 9103;
377377- type = types.int;
377377+ type = types.port;
378378 description = lib.mdDoc ''
379379 Specifies port number on which the Storage daemon listens for
380380 Director connections.
···451451452452 port = mkOption {
453453 default = 9101;
454454- type = types.int;
454454+ type = types.port;
455455 description = lib.mdDoc ''
456456 Specify the port (a positive integer) on which the Director daemon
457457 will listen for Bacula Console connections. This same port number
+1-1
nixos/modules/services/backup/duplicati.nix
···12121313 port = mkOption {
1414 default = 8200;
1515- type = types.int;
1515+ type = types.port;
1616 description = lib.mdDoc ''
1717 Port serving the web interface
1818 '';
···15151616 services.opentsdb = {
17171818- enable = mkOption {
1919- type = types.bool;
2020- default = false;
2121- description = lib.mdDoc ''
2222- Whether to run OpenTSDB.
2323- '';
2424- };
1818+ enable = mkEnableOption (lib.mdDoc "OpenTSDB");
25192620 package = mkOption {
2721 type = types.package;
···4943 };
50445145 port = mkOption {
5252- type = types.int;
4646+ type = types.port;
5347 default = 4242;
5448 description = lib.mdDoc ''
5549 Which port OpenTSDB listens on.
+1-1
nixos/modules/services/databases/pgmanage.nix
···8585 };
86868787 port = mkOption {
8888- type = types.int;
8888+ type = types.port;
8989 default = 8080;
9090 description = lib.mdDoc ''
9191 This tells pgmanage what port to listen on for browser requests.
+1-1
nixos/modules/services/games/teeworlds.nix
···7070 };
71717272 port = mkOption {
7373- type = types.int;
7373+ type = types.port;
7474 default = 8303;
7575 description = lib.mdDoc ''
7676 Port the server will listen on.
···4848 };
49495050 port = mkOption {
5151- type = types.int;
5151+ type = types.port;
5252 default = 4040;
5353 description = lib.mdDoc ''
5454 The port on which Airsonic will listen for
+1-1
nixos/modules/services/misc/ankisyncd.nix
···4444 };
45454646 port = mkOption {
4747- type = types.int;
4747+ type = types.port;
4848 default = 27701;
4949 description = lib.mdDoc "ankisyncd port";
5050 };
+1-1
nixos/modules/services/misc/apache-kafka.nix
···4040 port = mkOption {
4141 description = lib.mdDoc "Port number the broker should listen on.";
4242 default = 9092;
4343- type = types.int;
4343+ type = types.port;
4444 };
45454646 hostname = mkOption {
+3-8
nixos/modules/services/misc/exhibitor.nix
···6868{
6969 options = {
7070 services.exhibitor = {
7171- enable = mkOption {
7272- type = types.bool;
7373- default = false;
7474- description = lib.mdDoc ''
7575- Whether to enable the exhibitor server.
7676- '';
7777- };
7171+ enable = mkEnableOption (lib.mdDoc "exhibitor server");
7272+7873 # See https://github.com/soabase/exhibitor/wiki/Running-Exhibitor for what these mean
7974 # General options for any type of config
8075 port = mkOption {
8181- type = types.int;
7676+ type = types.port;
8277 default = 8080;
8378 description = lib.mdDoc ''
8479 The port for exhibitor to listen on and communicate with other exhibitors.
···8899{
1010 options.services.gollum = {
1111- enable = mkOption {
1212- type = types.bool;
1313- default = false;
1414- description = lib.mdDoc "Enable the Gollum service.";
1515- };
1111+ enable = mkEnableOption (lib.mdDoc "Gollum service");
16121713 address = mkOption {
1814 type = types.str;
···2117 };
22182319 port = mkOption {
2424- type = types.int;
2020+ type = types.port;
2521 default = 4567;
2622 description = lib.mdDoc "Port on which the web server will run.";
2723 };
+1-1
nixos/modules/services/misc/parsoid.nix
···7070 };
71717272 port = mkOption {
7373- type = types.int;
7373+ type = types.port;
7474 default = 8000;
7575 description = lib.mdDoc ''
7676 Port to listen on.
+1-1
nixos/modules/services/misc/pykms.nix
···2828 };
29293030 port = mkOption {
3131- type = types.int;
3131+ type = types.port;
3232 default = 1688;
3333 description = lib.mdDoc "The port on which to listen.";
3434 };
+1-1
nixos/modules/services/misc/redmine.nix
···161161 };
162162163163 port = mkOption {
164164- type = types.int;
164164+ type = types.port;
165165 default = if cfg.database.type == "postgresql" then 5432 else 3306;
166166 defaultText = literalExpression "3306";
167167 description = lib.mdDoc "Database host port.";
+1-1
nixos/modules/services/misc/rippled.nix
···98989999 port = mkOption {
100100 description = lib.mdDoc "Port where rippled listens.";
101101- type = types.int;
101101+ type = types.port;
102102 };
103103104104 protocol = mkOption {
+1-1
nixos/modules/services/misc/tautulli.nix
···2727 };
28282929 port = mkOption {
3030- type = types.int;
3030+ type = types.port;
3131 default = 8181;
3232 description = lib.mdDoc "TCP port where Tautulli listens.";
3333 };
+1-1
nixos/modules/services/misc/zoneminder.nix
···9797 };
98989999 port = mkOption {
100100- type = types.int;
100100+ type = types.port;
101101 default = 8095;
102102 description = lib.mdDoc ''
103103 The port on which to listen.
···3333 '';
3434 };
3535 port = mkOption {
3636- type = types.int;
3636+ type = types.port;
3737 example = 587;
3838 description = lib.mdDoc ''
3939 Port to use for SMTP.
···99 options = {
1010 services.samba-wsdd = {
1111 enable = mkEnableOption (lib.mdDoc ''
1212- Enable Web Services Dynamic Discovery host daemon. This enables (Samba) hosts, like your local NAS device,
1212+ Web Services Dynamic Discovery host daemon. This enables (Samba) hosts, like your local NAS device,
1313 to be found by Web Service Discovery Clients like Windows.
14141515 ::: {.note}
+1-1
nixos/modules/services/networking/bitlbee.nix
···68686969 portNumber = mkOption {
7070 default = 6667;
7171- type = types.int;
7171+ type = types.port;
7272 description = lib.mdDoc ''
7373 Number of the port BitlBee will be listening to.
7474 '';
···135135 };
136136137137 port = mkOption {
138138- type = types.int;
138138+ type = types.port;
139139 default = 5353;
140140 description = lib.mdDoc ''
141141 The DNSCrypt wrapper will listen for DNS queries on this port.
···182182 };
183183184184 upstream.port = mkOption {
185185- type = types.int;
185185+ type = types.port;
186186 default = 53;
187187 description = lib.mdDoc ''
188188 The port of the upstream DNS server DNSCrypt will "wrap".
···20202121 port = mkOption {
2222 default = 2022;
2323- type = types.int;
2323+ type = types.port;
2424 description = lib.mdDoc ''
2525 The port the server should listen on. Will use the server's default (2022) if not specified.
2626
···365365 If you enable this option the
366366 `networkmanager_strongswan` plugin will be added to
367367 the {option}`networking.networkmanager.plugins` option
368368- so you don't need to to that yourself.
368368+ so you don't need to do that yourself.
369369 '';
370370 };
371371
+2-2
nixos/modules/services/networking/nntp-proxy.nix
···7171 };
72727373 upstreamPort = mkOption {
7474- type = types.int;
7474+ type = types.port;
7575 default = 563;
7676 description = lib.mdDoc ''
7777 Upstream server port
···112112 };
113113114114 port = mkOption {
115115- type = types.int;
115115+ type = types.port;
116116 default = 5555;
117117 description = lib.mdDoc ''
118118 Proxy listen port
···23232424 services.polipo = {
25252626- enable = mkOption {
2727- type = types.bool;
2828- default = false;
2929- description = lib.mdDoc "Whether to run the polipo caching web proxy.";
3030- };
2626+ enable = mkEnableOption (lib.mdDoc "polipo caching web proxy");
31273228 proxyAddress = mkOption {
3329 type = types.str;
···3632 };
37333834 proxyPort = mkOption {
3939- type = types.int;
3535+ type = types.port;
4036 default = 8123;
4137 description = lib.mdDoc "TCP port on which Polipo will listen.";
4238 };
+1-1
nixos/modules/services/networking/shadowsocks.nix
···4848 };
49495050 port = mkOption {
5151- type = types.int;
5151+ type = types.port;
5252 default = 8388;
5353 description = lib.mdDoc ''
5454 Port which the server uses.
+3-6
nixos/modules/services/networking/smokeping.nix
···4949{
5050 options = {
5151 services.smokeping = {
5252- enable = mkOption {
5353- type = types.bool;
5454- default = false;
5555- description = lib.mdDoc "Enable the smokeping service";
5656- };
5252+ enable = mkEnableOption (lib.mdDoc "smokeping service");
5353+5754 alertConfig = mkOption {
5855 type = types.lines;
5956 default = ''
···186183 '';
187184 };
188185 port = mkOption {
189189- type = types.int;
186186+ type = types.port;
190187 default = 8081;
191188 description = lib.mdDoc "TCP port to use for the web server.";
192189 };
+1-1
nixos/modules/services/networking/sslh.nix
···7070 };
71717272 port = mkOption {
7373- type = types.int;
7373+ type = types.port;
7474 default = 443;
7575 description = lib.mdDoc "Listening port.";
7676 };
+1-1
nixos/modules/services/networking/teleport.nix
···6565 };
66666767 port = mkOption {
6868- type = int;
6868+ type = port;
6969 default = 3000;
7070 description = lib.mdDoc "Metrics and diagnostics port.";
7171 };
···2929 };
30303131 port = mkOption {
3232- type = types.int;
3232+ type = types.port;
3333 default = 33445;
3434 description = lib.mdDoc "Listening port (UDP).";
3535 };
+1-1
nixos/modules/services/networking/toxvpn.nix
···1414 };
15151616 port = mkOption {
1717- type = types.int;
1717+ type = types.port;
1818 default = 33445;
1919 description = lib.mdDoc "udp port for toxcore, port-forward to help with connectivity if you run many nodes behind one NAT";
2020 };
+1-1
nixos/modules/services/networking/xrdp.nix
···5454 };
55555656 port = mkOption {
5757- type = types.int;
5757+ type = types.port;
5858 default = 3389;
5959 description = lib.mdDoc ''
6060 Specifies on which port the xrdp daemon listens.
+1-1
nixos/modules/services/networking/zerotierone.nix
···19192020 options.services.zerotierone.port = mkOption {
2121 default = 9993;
2222- type = types.int;
2222+ type = types.port;
2323 description = lib.mdDoc ''
2424 Network port used by ZeroTier.
2525 '';
+1-1
nixos/modules/services/search/solr.nix
···2121 };
22222323 port = mkOption {
2424- type = types.int;
2424+ type = types.port;
2525 default = 8983;
2626 description = lib.mdDoc "Port on which Solr is ran.";
2727 };
···6161 };
62626363 listenPort = mkOption {
6464- type = types.int;
6464+ type = types.port;
6565 default = 8092;
6666 description = lib.mdDoc "Port to listen on.";
6767 };
···9595 };
96969797 port = mkOption {
9898- type = types.int;
9898+ type = types.port;
9999 default = 443;
100100 example = 80;
101101 description = lib.mdDoc "Port used at the proxy";
+4-4
nixos/modules/services/web-apps/peertube.nix
···75757676in {
7777 options.services.peertube = {
7878- enable = lib.mkEnableOption (lib.mdDoc "Enable Peertube’s service");
7878+ enable = lib.mkEnableOption (lib.mdDoc "Peertube");
79798080 user = lib.mkOption {
8181 type = lib.types.str;
···9696 };
97979898 listenHttp = lib.mkOption {
9999- type = lib.types.int;
9999+ type = lib.types.port;
100100 default = 9000;
101101 description = lib.mdDoc "listen port for HTTP server.";
102102 };
103103104104 listenWeb = lib.mkOption {
105105- type = lib.types.int;
105105+ type = lib.types.port;
106106 default = 9000;
107107 description = lib.mdDoc "listen port for WEB server.";
108108 };
···177177 };
178178179179 port = lib.mkOption {
180180- type = lib.types.int;
180180+ type = lib.types.port;
181181 default = 5432;
182182 description = lib.mdDoc "Database host port.";
183183 };
+2-2
nixos/modules/services/web-apps/restya-board.nix
···6969 };
70707171 listenPort = mkOption {
7272- type = types.int;
7272+ type = types.port;
7373 default = 3000;
7474 description = lib.mdDoc ''
7575 Listen port for the virtualhost to use.
···132132 };
133133134134 port = mkOption {
135135- type = types.int;
135135+ type = types.port;
136136 default = 25;
137137 description = lib.mdDoc ''
138138 Port used to connect to SMTP server.
+1-1
nixos/modules/services/web-apps/trilium.nix
···6767 };
68686969 port = mkOption {
7070- type = types.int;
7070+ type = types.port;
7171 default = 8080;
7272 description = lib.mdDoc ''
7373 The port number to bind to.
+1-1
nixos/modules/services/web-apps/tt-rss.nix
···208208 };
209209210210 port = mkOption {
211211- type = types.nullOr types.int;
211211+ type = types.nullOr types.port;
212212 default = null;
213213 description = lib.mdDoc ''
214214 The database's port. If not set, the default ports will be provided (5432
+1-1
nixos/modules/services/web-apps/youtrack.nix
···6868 The port youtrack will listen on.
6969 '';
7070 default = 8080;
7171- type = types.int;
7171+ type = types.port;
7272 };
73737474 statePath = mkOption {
···2525 };
26262727 port = mkOption {
2828- type = types.int;
2828+ type = types.port;
2929 default = 22;
3030 description = lib.mdDoc ''
3131 Port on which SSH initrd service should listen.