services: use 'port' option type

This commit is contained in:
Erik Arvstedt
2020-06-02 17:31:28 +02:00
parent 0ac1e496b2
commit db48ab9b69
6 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -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.";
};
+2 -2
View File
@@ -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.";
};
+2 -2
View File
@@ -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.";
};
+1 -1
View File
@@ -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.";
};
+1 -1
View File
@@ -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.";
+2 -2
View File
@@ -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.";
};