lnd: add netns

- Adds lnd to netns-isolation.services
- Specifies listen option (defaults to localhost) as target of
  hiddenService.
- Amends hardcoded lnd ip to lnd-cert

WARNING: Breaking changes for lnd cert. lnd-key and lnd-cert will have
to be deleted and redeployed.
This commit is contained in:
nixbitcoin 2020-06-10 14:34:14 +00:00
parent f3d2aaa5d4
commit c55296433d
No known key found for this signature in database
GPG key ID: DD11F9AD5308B3BA
3 changed files with 21 additions and 1 deletions

View file

@ -91,7 +91,7 @@ in {
tor-socks = cfg.tor.client.socksListenAddress;
enforceTor = true;
};
services.tor.hiddenServices.lnd = mkHiddenService { port = cfg.lnd.onionport; };
services.tor.hiddenServices.lnd = mkHiddenService { port = cfg.lnd.onionport; toHost = cfg.lnd.listen; };
# liquidd
services.liquidd = {