Skip to content

Commit

Permalink
Merge #493: lndconnect-onion: Fix feature for custom operator names
Browse files Browse the repository at this point in the history
cbf327c lndconnect-onion: fix for custom operator names (Erik Arvstedt)

Pull request description:

ACKs for top commit:
  jonasnick:
    utACK cbf327c

Tree-SHA512: 9088ecd2e73a8818f195a4acaa27c8a6fc6ca5b875881e65b3a715d2839c6261c58967acf1590429fa530477a6d2fcee2171347353c462d1bcfa62846a9182af
  • Loading branch information
jonasnick committed Jun 2, 2022
2 parents a99fad2 + cbf327c commit 32d2ded
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/lndconnect-onion.nix
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ let
--adminmacaroonpath='${macaroonPath}' \
--configfile=/dev/null "$@"
'';

operatorName = config.nix-bitcoin.operator.name;
in {
inherit options;

Expand Down Expand Up @@ -108,12 +110,12 @@ in {
};
};
# This also allows nodeinfo to show the clightning-rest onion address
nix-bitcoin.onionAddresses.access.operator = [ "clightning-rest" ];
nix-bitcoin.onionAddresses.access.${operatorName} = [ "clightning-rest" ];

environment.systemPackages = [(
mkLndconnect {
name = "lndconnect-onion-clightning";
onionService = "operator/clightning-rest";
onionService = "${operatorName}/clightning-rest";
port = clightning-rest.port;
certPath = "${clightning-rest.dataDir}/certs/certificate.pem";
macaroonPath = "${clightning-rest.dataDir}/certs/access.macaroon";
Expand Down

0 comments on commit 32d2ded

Please sign in to comment.