summary refs log tree commit diff
path: root/nixos/modules/services/security
diff options
context:
space:
mode:
authorJan Malakhovski <oxij@oxij.org>2017-03-11 18:04:08 +0000
committerJan Malakhovski <oxij@oxij.org>2017-03-16 21:06:12 +0000
commita04782581a96d5ee8b4001701432599959ac2dc2 (patch)
tree7d5610b995a746c5a496f6a443b71e689e9810ac /nixos/modules/services/security
parent6d25f77a643762d718c49ab3fc86e0262d2d38fd (diff)
downloadnixlib-a04782581a96d5ee8b4001701432599959ac2dc2.tar
nixlib-a04782581a96d5ee8b4001701432599959ac2dc2.tar.gz
nixlib-a04782581a96d5ee8b4001701432599959ac2dc2.tar.bz2
nixlib-a04782581a96d5ee8b4001701432599959ac2dc2.tar.lz
nixlib-a04782581a96d5ee8b4001701432599959ac2dc2.tar.xz
nixlib-a04782581a96d5ee8b4001701432599959ac2dc2.tar.zst
nixlib-a04782581a96d5ee8b4001701432599959ac2dc2.zip
nixos: torify: disable by default, add some documentation as of why
This `tsocks` wrapper leaks DNS requests to clearnet, meanwhile Tor comes with
`torsocks` which doesn't.

Previous commits to this file state that all of this still useful somehow.
Assuming that it's true, at least let's not confuse users with two different tools
and don't clash with the `tsocks` binary from nixpkgs by disabling this by default.
Diffstat (limited to 'nixos/modules/services/security')
-rw-r--r--nixos/modules/services/security/torify.nix16
1 files changed, 12 insertions, 4 deletions
diff --git a/nixos/modules/services/security/torify.nix b/nixos/modules/services/security/torify.nix
index a81cdbbc172f..a29cb3f33dae 100644
--- a/nixos/modules/services/security/torify.nix
+++ b/nixos/modules/services/security/torify.nix
@@ -19,15 +19,23 @@ in
 {
 
   ###### interface
-  
+
   options = {
-  
+
     services.tor.tsocks = {
 
       enable = mkOption {
-        default = cfg.enable && cfg.client.enable;
+        default = false;
         description = ''
-          Whether to build tsocks wrapper script to relay application traffic via TOR.
+          Whether to build tsocks wrapper script to relay application traffic via Tor.
+
+          <important>
+            <para>You shouldn't use this unless you know what you're
+            doing because your installation of Tor already comes with
+            its own superior (doesn't leak DNS queries)
+            <literal>torsocks</literal> wrapper which does pretty much
+            exactly the same thing as this.</para>
+          </important>
         '';
       };