0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00

treewide: use types.port in nixos modules

This commit is contained in:
Daniel Nagy 2022-11-09 22:30:00 +01:00
parent c32d981cdd
commit 095269c862
No known key found for this signature in database
GPG key ID: 1B8E8DCB576FB671
47 changed files with 57 additions and 57 deletions

View file

@ -33,7 +33,7 @@ let
'';
};
port = mkOption {
type = types.int;
type = types.port;
example = 587;
description = lib.mdDoc ''
Port to use for SMTP.

View file

@ -17,7 +17,7 @@ in
};
torControlPort = mkOption {
type = types.int;
type = types.port;
default = 9051;
description = lib.mdDoc ''
Tor control port.