Fix lnd macaroons: replace invalid 'enable' with 'user'

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.
This commit is contained in:
Sovran Systems
2026-08-10 11:40:36 -05:00
parent dcc9e4904e
commit ebcc086a7e
+1 -1
View File
@@ -270,7 +270,7 @@ in {
services.lnd = { services.lnd = {
enable = true; enable = true;
macaroons.btcpayserver = { macaroons.btcpayserver = {
enable = true; user = cfg.btcpayserver.user;
permissions = '' 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"} {"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"}
''; '';