From 14a073c35aece3d9736186f49f5b187332e3fff6 Mon Sep 17 00:00:00 2001 From: Jonas Nick Date: Tue, 20 Nov 2018 00:22:16 +0000 Subject: [PATCH] Add bitcoind onion service --- modules/onionnode.nix | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/modules/onionnode.nix b/modules/onionnode.nix index 008eab6..1222d74 100644 --- a/modules/onionnode.nix +++ b/modules/onionnode.nix @@ -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; }; + }; }