aboutsummaryrefslogtreecommitdiff
path: root/nix/modules/tor.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/modules/tor.nix')
-rw-r--r--nix/modules/tor.nix18
1 files changed, 18 insertions, 0 deletions
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";
+ };
+}