diff --git a/modules/bitcoind.nix b/modules/bitcoind.nix index 7d9d031..b997045 100644 --- a/modules/bitcoind.nix +++ b/modules/bitcoind.nix @@ -80,7 +80,7 @@ in { }; rpc = { port = mkOption { - type = types.ints.u16; + type = types.port; default = 8332; description = "Port on which to listen for JSON-RPC connections."; }; @@ -133,7 +133,7 @@ in { description = "Whether to use the test chain."; }; port = mkOption { - type = types.nullOr types.ints.u16; + type = types.nullOr types.port; default = null; description = "Override the default port on which to listen for connections."; }; diff --git a/modules/electrs.nix b/modules/electrs.nix index 5b62149..ad3f239 100644 --- a/modules/electrs.nix +++ b/modules/electrs.nix @@ -40,7 +40,7 @@ in { description = "RPC listening address."; }; port = mkOption { - type = types.ints.u16; + type = types.port; default = 50001; description = "RPC port."; }; @@ -52,7 +52,7 @@ in { TLSProxy = { enable = mkEnableOption "Nginx TLS proxy"; port = mkOption { - type = types.ints.u16; + type = types.port; default = 50003; description = "Port on which to listen for TLS client connections."; }; diff --git a/modules/liquid.nix b/modules/liquid.nix index 2bb604e..e2fc3da 100644 --- a/modules/liquid.nix +++ b/modules/liquid.nix @@ -94,7 +94,7 @@ in { rpc = { port = mkOption { - type = types.nullOr types.ints.u16; + type = types.nullOr types.port; default = null; description = "Override the default port on which to listen for JSON-RPC connections."; }; @@ -128,7 +128,7 @@ in { description = "Whether to use the test chain."; }; port = mkOption { - type = types.nullOr types.ints.u16; + type = types.nullOr types.port; default = null; description = "Override the default port on which to listen for connections."; }; diff --git a/modules/lnd.nix b/modules/lnd.nix index 3df08b6..6a92b66 100644 --- a/modules/lnd.nix +++ b/modules/lnd.nix @@ -45,7 +45,7 @@ in { description = "The data directory for LND."; }; rpcPort = mkOption { - type = types.ints.u16; + type = types.port; default = 10009; description = "Port on which to listen for gRPC connections."; }; diff --git a/modules/nanopos.nix b/modules/nanopos.nix index 2fa5894..8771f8e 100644 --- a/modules/nanopos.nix +++ b/modules/nanopos.nix @@ -36,7 +36,7 @@ in { ''; }; port = mkOption { - type = types.ints.u16; + type = types.port; default = 9116; description = '' "The port on which to listen for connections."; diff --git a/modules/presets/secure-node.nix b/modules/presets/secure-node.nix index d010c0f..2c60948 100644 --- a/modules/presets/secure-node.nix +++ b/modules/presets/secure-node.nix @@ -20,12 +20,12 @@ in { options = { services.clightning.onionport = mkOption { - type = types.ints.u16; + type = types.port; default = 9735; description = "Port on which to listen for tor client connections."; }; services.electrs.onionport = mkOption { - type = types.ints.u16; + type = types.port; default = 50002; description = "Port on which to listen for tor client connections."; };