clightning: refactor bind-addr to be IP address only

With typecheck
This commit is contained in:
nixbitcoin
2020-08-04 13:21:40 +00:00
parent d99ccc8445
commit 43da15557d
3 changed files with 219 additions and 222 deletions

View File

@@ -152,7 +152,11 @@ in {
enforceTor = true;
always-use-proxy = true;
};
services.tor.hiddenServices.clightning = mkIf cfg.clightning.enable (mkHiddenService { port = cfg.clightning.onionport; toHost = (builtins.head (builtins.split ":" cfg.clightning.bind-addr)); toPort = cfg.clightning.bindport; });
services.tor.hiddenServices.clightning = mkIf cfg.clightning.enable (mkHiddenService {
port = cfg.clightning.onionport;
toHost = cfg.clightning.bind-addr;
toPort = cfg.clightning.bindport;
});
# lnd
services.lnd = {