diff options
Diffstat (limited to 'modules/software/networking/tor.nix')
| -rw-r--r-- | modules/software/networking/tor.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/modules/software/networking/tor.nix b/modules/software/networking/tor.nix new file mode 100644 index 0000000..dfbfb3a --- /dev/null +++ b/modules/software/networking/tor.nix @@ -0,0 +1,27 @@ +{ pkgs, ... }: +{ + services.tor = { + enable = true; + torsocks.enable = true; + + client = { + enable = true; + dns.enable = true; + }; + }; + + programs.proxychains = { + enable = true; + quietMode = false; + proxyDNS = true; + package = pkgs.proxychains-ng; + + proxies = { + tor = { + type = "socks5"; + host = "127.0.0.1"; + port = 9050; + }; + }; + }; +} |