Merge #190: services: use 'port' option type
db48ab9b69
services: use 'port' option type (Erik Arvstedt) Pull request description: ACKs for top commit: jonasnick: ACKdb48ab9b69
Tree-SHA512: 24cf0c307b40652d1275575fdf4216696890b0f7786832e7bbee9e21cf6d23d3fc35480926c475fc98c17eba668f5ee2c8c0875689e725c8ad05f2fb6b9ecd20
This commit is contained in:
commit
16e602e2b5
@ -80,7 +80,7 @@ in {
|
|||||||
};
|
};
|
||||||
rpc = {
|
rpc = {
|
||||||
port = mkOption {
|
port = mkOption {
|
||||||
type = types.ints.u16;
|
type = types.port;
|
||||||
default = 8332;
|
default = 8332;
|
||||||
description = "Port on which to listen for JSON-RPC connections.";
|
description = "Port on which to listen for JSON-RPC connections.";
|
||||||
};
|
};
|
||||||
@ -133,7 +133,7 @@ in {
|
|||||||
description = "Whether to use the test chain.";
|
description = "Whether to use the test chain.";
|
||||||
};
|
};
|
||||||
port = mkOption {
|
port = mkOption {
|
||||||
type = types.nullOr types.ints.u16;
|
type = types.nullOr types.port;
|
||||||
default = null;
|
default = null;
|
||||||
description = "Override the default port on which to listen for connections.";
|
description = "Override the default port on which to listen for connections.";
|
||||||
};
|
};
|
||||||
|
@ -40,7 +40,7 @@ in {
|
|||||||
description = "RPC listening address.";
|
description = "RPC listening address.";
|
||||||
};
|
};
|
||||||
port = mkOption {
|
port = mkOption {
|
||||||
type = types.ints.u16;
|
type = types.port;
|
||||||
default = 50001;
|
default = 50001;
|
||||||
description = "RPC port.";
|
description = "RPC port.";
|
||||||
};
|
};
|
||||||
@ -52,7 +52,7 @@ in {
|
|||||||
TLSProxy = {
|
TLSProxy = {
|
||||||
enable = mkEnableOption "Nginx TLS proxy";
|
enable = mkEnableOption "Nginx TLS proxy";
|
||||||
port = mkOption {
|
port = mkOption {
|
||||||
type = types.ints.u16;
|
type = types.port;
|
||||||
default = 50003;
|
default = 50003;
|
||||||
description = "Port on which to listen for TLS client connections.";
|
description = "Port on which to listen for TLS client connections.";
|
||||||
};
|
};
|
||||||
|
@ -94,7 +94,7 @@ in {
|
|||||||
|
|
||||||
rpc = {
|
rpc = {
|
||||||
port = mkOption {
|
port = mkOption {
|
||||||
type = types.nullOr types.ints.u16;
|
type = types.nullOr types.port;
|
||||||
default = null;
|
default = null;
|
||||||
description = "Override the default port on which to listen for JSON-RPC connections.";
|
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.";
|
description = "Whether to use the test chain.";
|
||||||
};
|
};
|
||||||
port = mkOption {
|
port = mkOption {
|
||||||
type = types.nullOr types.ints.u16;
|
type = types.nullOr types.port;
|
||||||
default = null;
|
default = null;
|
||||||
description = "Override the default port on which to listen for connections.";
|
description = "Override the default port on which to listen for connections.";
|
||||||
};
|
};
|
||||||
|
@ -45,7 +45,7 @@ in {
|
|||||||
description = "The data directory for LND.";
|
description = "The data directory for LND.";
|
||||||
};
|
};
|
||||||
rpcPort = mkOption {
|
rpcPort = mkOption {
|
||||||
type = types.ints.u16;
|
type = types.port;
|
||||||
default = 10009;
|
default = 10009;
|
||||||
description = "Port on which to listen for gRPC connections.";
|
description = "Port on which to listen for gRPC connections.";
|
||||||
};
|
};
|
||||||
|
@ -36,7 +36,7 @@ in {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
port = mkOption {
|
port = mkOption {
|
||||||
type = types.ints.u16;
|
type = types.port;
|
||||||
default = 9116;
|
default = 9116;
|
||||||
description = ''
|
description = ''
|
||||||
"The port on which to listen for connections.";
|
"The port on which to listen for connections.";
|
||||||
|
@ -20,12 +20,12 @@ in {
|
|||||||
|
|
||||||
options = {
|
options = {
|
||||||
services.clightning.onionport = mkOption {
|
services.clightning.onionport = mkOption {
|
||||||
type = types.ints.u16;
|
type = types.port;
|
||||||
default = 9735;
|
default = 9735;
|
||||||
description = "Port on which to listen for tor client connections.";
|
description = "Port on which to listen for tor client connections.";
|
||||||
};
|
};
|
||||||
services.electrs.onionport = mkOption {
|
services.electrs.onionport = mkOption {
|
||||||
type = types.ints.u16;
|
type = types.port;
|
||||||
default = 50002;
|
default = 50002;
|
||||||
description = "Port on which to listen for tor client connections.";
|
description = "Port on which to listen for tor client connections.";
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user