From dbe8182e7433374b5ae7b5454126ce46211f0f03 Mon Sep 17 00:00:00 2001 From: Daniel Nagy Date: Wed, 30 Nov 2022 17:15:00 +0100 Subject: treewide: switch to port type for nixos modules --- nixos/modules/services/networking/chisel-server.nix | 2 +- nixos/modules/services/networking/i2pd.nix | 2 +- nixos/modules/services/networking/mtprotoproxy.nix | 2 +- nixos/modules/services/networking/xinetd.nix | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'nixos/modules/services/networking') 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."; -- cgit 1.4.1