summaryrefslogtreecommitdiff
path: root/os/srv/tor.nix
diff options
context:
space:
mode:
Diffstat (limited to 'os/srv/tor.nix')
-rw-r--r--os/srv/tor.nix13
1 files changed, 10 insertions, 3 deletions
diff --git a/os/srv/tor.nix b/os/srv/tor.nix
index 08c8152..55c779d 100644
--- a/os/srv/tor.nix
+++ b/os/srv/tor.nix
@@ -17,12 +17,19 @@ in
(lib.mkIf cfg.enable {
services.tor = {
enable = true;
+ client = {
+ enable = true;
+ dns.enable = true;
+ transparentProxy.enable = true;
+ };
+ settings = {
+ Sandbox = true;
+ DisableAllSwap = true;
+ };
};
})
(lib.mkIf cfg.enableBrowser {
- environment.systemPackages = with pkgs; [
- tor-browser
- ];
+ environment.systemPackages = [ pkgs.tor-browser ];
})
];
}