summaryrefslogtreecommitdiff
path: root/modules/networking/tor.nix
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-11 03:34:29 -0700
committerFuwn <[email protected]>2024-09-11 03:34:39 -0700
commitb84cc156236ecd4fbe0c9d458e46078df625cb47 (patch)
tree18d5355ef83ebe992074a5cbff14f393b8481b67 /modules/networking/tor.nix
parentBump: i2p (diff)
downloadnixos-config-b84cc156236ecd4fbe0c9d458e46078df625cb47.tar.xz
nixos-config-b84cc156236ecd4fbe0c9d458e46078df625cb47.zip
Bump: move networking module
Diffstat (limited to 'modules/networking/tor.nix')
-rw-r--r--modules/networking/tor.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/modules/networking/tor.nix b/modules/networking/tor.nix
new file mode 100644
index 0000000..dfbfb3a
--- /dev/null
+++ b/modules/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;
+ };
+ };
+ };
+}