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.nix26
1 files changed, 14 insertions, 12 deletions
diff --git a/nix/modules/tor.nix b/nix/modules/tor.nix
index eef4009..73cb4b2 100644
--- a/nix/modules/tor.nix
+++ b/nix/modules/tor.nix
@@ -1,18 +1,20 @@
{ config, lib, ... }:
{
- enable = lib.mkDefault config.monorepo.profiles.tor.enable;
- openFirewall = true;
- client = {
+ services.tor = {
enable = lib.mkDefault config.monorepo.profiles.tor.enable;
- socksListenAddress = {
- IsolateDestAddr = true;
- addr = "127.0.0.1";
- port = 9050;
+ 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";
};
- dns.enable = true;
- };
- torsocks = {
- enable = lib.mkDefault config.monorepo.profiles.tor.enable;
- server = "127.0.0.1:9050";
};
}