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 {
services.bitcoin.enable = true;
services.bitcoin.listen = true;
# make an onion listen node
services.tor.enable = true;
services.tor.client.enable = true;
services.bitcoin.proxy = config.services.tor.client.socksListenAddress;
services.tor.hiddenServices =
{ "bitcoind".map = [ {
#port = config.services.bitcoin.port;
port = 8333;
} ];
"bitcoind".version = 3;};
#services.tor.hiddenServices.bitcoind.version = 3;
services.bitcoin.port = 8333;
services.tor.hiddenServices.bitcoind = {
map = [{
port = config.services.bitcoin.port;
}];
version = 3;
};
};
}