Add onion listening node with tor HS v3
This commit is contained in:
+17
-3
@@ -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/";
|
||||
|
||||
Reference in New Issue
Block a user