From ebcc086a7efde8174676b74e26c899e1cea0e2b0 Mon Sep 17 00:00:00 2001 From: Sovran Systems <99053422+naturallaw777@users.noreply.github.com> Date: Mon, 10 Aug 2026 11:40:36 -0500 Subject: [PATCH] Fix lnd macaroons: replace invalid 'enable' with 'user' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The services.lnd.macaroons submodule has no 'enable' option — macaroons are implicitly enabled by being defined. Replace 'enable = true' with 'user = cfg.btcpayserver.user' which is the correct option for controlling macaroon file ownership. --- modules/bitcoin/btcpayserver.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/bitcoin/btcpayserver.nix b/modules/bitcoin/btcpayserver.nix index 5fb8f15..869bc75 100644 --- a/modules/bitcoin/btcpayserver.nix +++ b/modules/bitcoin/btcpayserver.nix @@ -270,7 +270,7 @@ in { services.lnd = { enable = true; macaroons.btcpayserver = { - enable = true; + user = cfg.btcpayserver.user; permissions = '' {"entity":"address","action":"write"},{"entity":"info","action":"read"},{"entity":"invoices","action":"read"},{"entity":"invoices","action":"write"},{"entity":"offchain","action":"read"},{"entity":"offchain","action":"write"},{"entity":"onchain","action":"read"},{"entity":"onchain","action":"write"},{"entity":"peers","action":"read"},{"entity":"peers","action":"write"} '';