From 2dff9d2b61244fed49136028d0e0f6ae3ae759cf Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Thu, 16 Jan 2025 00:13:06 -0800 Subject: modules about done --- nix/modules/tor.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 nix/modules/tor.nix (limited to 'nix/modules/tor.nix') diff --git a/nix/modules/tor.nix b/nix/modules/tor.nix new file mode 100644 index 0000000..eef4009 --- /dev/null +++ b/nix/modules/tor.nix @@ -0,0 +1,18 @@ +{ config, lib, ... }: +{ + enable = lib.mkDefault config.monorepo.profiles.tor.enable; + openFirewall = true; + client = { + enable = lib.mkDefault config.monorepo.profiles.tor.enable; + socksListenAddress = { + IsolateDestAddr = true; + addr = "127.0.0.1"; + port = 9050; + }; + dns.enable = true; + }; + torsocks = { + enable = lib.mkDefault config.monorepo.profiles.tor.enable; + server = "127.0.0.1:9050"; + }; +} -- cgit