Add onion listening node with tor HS v3

This commit is contained in:
Jonas Nick
2018-11-19 23:09:57 +00:00
parent d943e11647
commit cad0763c70
4 changed files with 873 additions and 26 deletions
+17 -3
View File
@@ -5,9 +5,16 @@
{ config, pkgs, ... }:
{
disabledModules = [ "services/security/tor.nix" ];
imports =
[ # Include the results of the hardware scan.
[
./modules/default.nix
./modules/tor.nix
./modules/onionnode.nix
];
networking.hostName = "nix-bitcoin"; # Define your hostname.
@@ -18,8 +25,6 @@
];
services.openssh.enable = true;
services.tor.enable = true;
services.tor.client.enable = true;
# users.users.root = {
# openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILacgZRwLsiICNHGHY2TG2APeuxFsrw6Cg13ZTMQpNqA nickler@rick" ];
@@ -31,6 +36,15 @@
networking.firewall.enable = true;
services.bitcoin.enable = true;
# make an onion listen node
services.tor.enable = true;
services.tor.client.enable = true;
#services.bitcoin.proxy = services.tor.client.socksListenAddress;
services.onionnode.enable = true;
# turn off binary cache by passing the empty list
nix.binaryCaches = [];
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";