electrs: add netns

- Adds electrs to netns-isolation.services
- Adds daemonrpc option and specifies address option to allow using
  electrs with network namespaces
- Adds host option (defaults to localhost) as target of hidden service
This commit is contained in:
nixbitcoin 2020-05-29 11:13:50 +00:00
parent c0b02ac93a
commit d6296acaba
No known key found for this signature in database
GPG key ID: DD11F9AD5308B3BA
3 changed files with 30 additions and 1 deletions

View file

@ -119,6 +119,7 @@ in {
services.tor.hiddenServices.electrs = mkHiddenService {
port = cfg.electrs.onionport;
toPort = if cfg.electrs.TLSProxy.enable then cfg.electrs.TLSProxy.port else cfg.electrs.port;
toHost = cfg.electrs.host;
};
services.spark-wallet.onion-service = true;