diff options
author | Daniel Nagy <danielnagy@posteo.de> | 2022-11-30 17:15:00 +0100 |
---|---|---|
committer | Daniel Nagy <danielnagy@posteo.de> | 2022-12-01 22:30:00 +0100 |
commit | dbe8182e7433374b5ae7b5454126ce46211f0f03 (patch) | |
tree | e5e91a4a1970de4693979d5ac0830cac7cda0e15 /nixos/modules/services/networking | |
parent | 9063accddd2e68dcc71032459a58399e977374c9 (diff) |
treewide: switch to port type for nixos modules
Diffstat (limited to 'nixos/modules/services/networking')
-rw-r--r-- | nixos/modules/services/networking/chisel-server.nix | 2 | ||||
-rw-r--r-- | nixos/modules/services/networking/i2pd.nix | 2 | ||||
-rw-r--r-- | nixos/modules/services/networking/mtprotoproxy.nix | 2 | ||||
-rw-r--r-- | nixos/modules/services/networking/xinetd.nix | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/nixos/modules/services/networking/chisel-server.nix b/nixos/modules/services/networking/chisel-server.nix index d3724743209b2..134c71430cd07 100644 --- a/nixos/modules/services/networking/chisel-server.nix +++ b/nixos/modules/services/networking/chisel-server.nix @@ -17,7 +17,7 @@ in { }; 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 { diff --git a/nixos/modules/services/networking/i2pd.nix b/nixos/modules/services/networking/i2pd.nix index b60cbe664b6f6..a02f8df11163c 100644 --- a/nixos/modules/services/networking/i2pd.nix +++ b/nixos/modules/services/networking/i2pd.nix @@ -495,7 +495,7 @@ in 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). diff --git a/nixos/modules/services/networking/mtprotoproxy.nix b/nixos/modules/services/networking/mtprotoproxy.nix index fc3d5dc963a0b..3dd197697b23a 100644 --- a/nixos/modules/services/networking/mtprotoproxy.nix +++ b/nixos/modules/services/networking/mtprotoproxy.nix @@ -40,7 +40,7 @@ in 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. diff --git a/nixos/modules/services/networking/xinetd.nix b/nixos/modules/services/networking/xinetd.nix index 2ec0cd18dcba7..b9120f37ba247 100644 --- a/nixos/modules/services/networking/xinetd.nix +++ b/nixos/modules/services/networking/xinetd.nix @@ -78,7 +78,7 @@ in }; port = mkOption { - type = types.int; + type = types.port; default = 0; example = 123; description = lib.mdDoc "Port number of the service."; |