Add bitcoind onion service

This commit is contained in:
Jonas Nick 2018-11-20 00:22:16 +00:00
parent cad0763c70
commit 14a073c35a

View File

@ -18,16 +18,15 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
services.bitcoin.enable = true; services.bitcoin.enable = true;
services.bitcoin.listen = true; services.bitcoin.listen = true;
# make an onion listen node
services.tor.enable = true; services.tor.enable = true;
services.tor.client.enable = true; services.tor.client.enable = true;
services.bitcoin.proxy = config.services.tor.client.socksListenAddress; services.bitcoin.proxy = config.services.tor.client.socksListenAddress;
services.tor.hiddenServices = services.bitcoin.port = 8333;
{ "bitcoind".map = [ { services.tor.hiddenServices.bitcoind = {
#port = config.services.bitcoin.port; map = [{
port = 8333; port = config.services.bitcoin.port;
}]; }];
"bitcoind".version = 3;}; version = 3;
#services.tor.hiddenServices.bitcoind.version = 3; };
}; };
} }