about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorEvgeny Egorochkin <phreedom@yandex.ru>2014-12-19 05:58:03 +0200
committerEvgeny Egorochkin <phreedom@yandex.ru>2014-12-19 08:05:41 +0200
commit633cc58d5ca40ac0f6950e8c80136165fc7330c5 (patch)
tree5e964576aadcea157e519ab922d9847652bebbd0 /nixos
parent824b3b1a9958421ddfc9558b47272692f5eb9a5f (diff)
downloadnixlib-633cc58d5ca40ac0f6950e8c80136165fc7330c5.tar
nixlib-633cc58d5ca40ac0f6950e8c80136165fc7330c5.tar.gz
nixlib-633cc58d5ca40ac0f6950e8c80136165fc7330c5.tar.bz2
nixlib-633cc58d5ca40ac0f6950e8c80136165fc7330c5.tar.lz
nixlib-633cc58d5ca40ac0f6950e8c80136165fc7330c5.tar.xz
nixlib-633cc58d5ca40ac0f6950e8c80136165fc7330c5.tar.zst
nixlib-633cc58d5ca40ac0f6950e8c80136165fc7330c5.zip
torsocks: enable by default if tor client functionality is enabled
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/security/torsocks.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/security/torsocks.nix b/nixos/modules/services/security/torsocks.nix
index 5361d924ebe3..093a105bc313 100644
--- a/nixos/modules/services/security/torsocks.nix
+++ b/nixos/modules/services/security/torsocks.nix
@@ -25,7 +25,7 @@ in
     services.tor.torsocks = {
       enable = mkOption {
         type        = types.bool;
-        default     = false;
+        default     = config.services.tor.enable && config.services.tor.client.enable;
         description = ''
           Whether to build <literal>/etc/tor/torsocks.conf</literal>
           containing the specified global torsocks configuration.