From 1868bef4625a2897eb03355099e5077739d07365 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Wed, 27 Nov 2019 14:04:43 +0100 Subject: [PATCH] lnd: add option 'rpcPort' 10009 is lnd's default port. Needed for the following commit. --- modules/lnd.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/lnd.nix b/modules/lnd.nix index 73b9740..9c074ba 100644 --- a/modules/lnd.nix +++ b/modules/lnd.nix @@ -12,6 +12,8 @@ let tlscertpath=/secrets/lnd_cert tlskeypath=/secrets/lnd_key + rpclisten=localhost:${toString cfg.rpcPort} + bitcoin.active=1 bitcoin.node=bitcoind @@ -41,6 +43,11 @@ in { default = "/var/lib/lnd"; description = "The data directory for LND."; }; + rpcPort = mkOption { + type = types.ints.u16; + default = 10009; + description = "Port on which to listen for gRPC connections."; + }; extraConfig = mkOption { type = types.lines; default = "";