diff --git a/modules/bitcoind.nix b/modules/bitcoind.nix index 6f2dc1c..14d972b 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 4c2b95f..bf81cd7 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 d943eb2..1e58cbb 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 a66d9a8..5d74494 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 6cc1529..2f30446 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 7e1704f..f2a35a7 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."; };