From b3df1841d7339a88d52e5ecfc4b2da6fca9e5da0 Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 29 Dec 2024 10:25:09 +0000 Subject: [PATCH] Update LNBits environment variables for LndRestWallet --- hosts/common/optional/nixos-containers/nix-bitcoin.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hosts/common/optional/nixos-containers/nix-bitcoin.nix b/hosts/common/optional/nixos-containers/nix-bitcoin.nix index 3b6b233..6a504c1 100644 --- a/hosts/common/optional/nixos-containers/nix-bitcoin.nix +++ b/hosts/common/optional/nixos-containers/nix-bitcoin.nix @@ -180,7 +180,13 @@ in { openFirewall = true; host = "0.0.0.0"; port = 8231; - env = {LNBITS_ADMIN_UI = "true";}; + env = { + LNBITS_ADMIN_UI = "true"; + LNBITS_BACKEND_WALLET_CLASS = "LndRestWallet"; + LND_REST_ENDPOINT = "https://127.0.0.1:8080"; + LND_REST_CERT = "/etc/nix-bitcoin-secrets/lnd-cert"; + LND_REST_MACAROON = "/var/lib/lnbits/admin.macaroon"; + }; }; };