From a019f79283cb791f2387c4a79c6c5bb03866877c Mon Sep 17 00:00:00 2001 From: padreug Date: Wed, 24 Dec 2025 17:38:02 +0100 Subject: [PATCH] lnd: add neutrino.maxPeers option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Allow configuring the maximum number of inbound and outbound peers for neutrino. Default is 8, matching lnd's default. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- modules/lnd.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/lnd.nix b/modules/lnd.nix index d548e11..38f00bc 100644 --- a/modules/lnd.nix +++ b/modules/lnd.nix @@ -167,6 +167,13 @@ let Required because neutrino doesn't have access to mempool data. ''; }; + maxPeers = mkOption { + type = types.int; + default = 8; + description = '' + Maximum number of inbound and outbound peers for neutrino. + ''; + }; }; }; @@ -207,6 +214,7 @@ let '' else '' bitcoin.node=neutrino ${lib.concatMapStringsSep "\n" (peer: "neutrino.addpeer=${peer}") cfg.neutrino.peers} + neutrino.maxpeers=${toString cfg.neutrino.maxPeers} fee.url=${cfg.neutrino.feeUrl} ''}