From 7d06fed28cdf60bbbd6ed218f39f9dc0a689198e Mon Sep 17 00:00:00 2001 From: padreug Date: Wed, 24 Dec 2025 17:19:56 +0100 Subject: [PATCH] lnd: rename neutrino.addpeers to neutrino.peers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use simpler naming for the NixOS option. The option defines which peers to connect to, not the action of adding them. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- modules/lnd.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/lnd.nix b/modules/lnd.nix index 163d547..d548e11 100644 --- a/modules/lnd.nix +++ b/modules/lnd.nix @@ -150,12 +150,12 @@ let description = "The backend to use for fetching blockchain data."; }; neutrino = { - addpeers = mkOption { + peers = mkOption { type = types.listOf types.str; default = []; example = [ "192.168.1.1:8333" "btcd.example.com:8333" ]; description = '' - List of Bitcoin full node peers to connect to via neutrino.addpeer. + List of Bitcoin full node peers to connect to for neutrino. Multiple peers provide redundancy for maximum uptime. ''; }; @@ -206,7 +206,7 @@ let bitcoind.zmqpubrawtx=${zmqHandleSpecialAddress bitcoind.zmqpubrawtx} '' else '' bitcoin.node=neutrino - ${lib.concatMapStringsSep "\n" (peer: "neutrino.addpeer=${peer}") cfg.neutrino.addpeers} + ${lib.concatMapStringsSep "\n" (peer: "neutrino.addpeer=${peer}") cfg.neutrino.peers} fee.url=${cfg.neutrino.feeUrl} ''} @@ -232,10 +232,10 @@ in { services.lnd.port to a port other than 9735. ''; } - { assertion = cfg.backend != "neutrino" || cfg.neutrino.addpeers != []; + { assertion = cfg.backend != "neutrino" || cfg.neutrino.peers != []; message = '' When using neutrino backend, you must configure at least one peer - in services.lnd.neutrino.addpeers. + in services.lnd.neutrino.peers. ''; } ];