lndconnect-onion: fix for custom operator names
This commit is contained in:
parent
a99fad2235
commit
cbf327c808
@ -70,6 +70,8 @@ let
|
|||||||
--adminmacaroonpath='${macaroonPath}' \
|
--adminmacaroonpath='${macaroonPath}' \
|
||||||
--configfile=/dev/null "$@"
|
--configfile=/dev/null "$@"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
operatorName = config.nix-bitcoin.operator.name;
|
||||||
in {
|
in {
|
||||||
inherit options;
|
inherit options;
|
||||||
|
|
||||||
@ -108,12 +110,12 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
# This also allows nodeinfo to show the clightning-rest onion address
|
# 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 = [(
|
environment.systemPackages = [(
|
||||||
mkLndconnect {
|
mkLndconnect {
|
||||||
name = "lndconnect-onion-clightning";
|
name = "lndconnect-onion-clightning";
|
||||||
onionService = "operator/clightning-rest";
|
onionService = "${operatorName}/clightning-rest";
|
||||||
port = clightning-rest.port;
|
port = clightning-rest.port;
|
||||||
certPath = "${clightning-rest.dataDir}/certs/certificate.pem";
|
certPath = "${clightning-rest.dataDir}/certs/certificate.pem";
|
||||||
macaroonPath = "${clightning-rest.dataDir}/certs/access.macaroon";
|
macaroonPath = "${clightning-rest.dataDir}/certs/access.macaroon";
|
||||||
|
Loading…
Reference in New Issue
Block a user