diff options
author | Evgeny Egorochkin <phreedom@yandex.ru> | 2014-12-19 05:58:03 +0200 |
---|---|---|
committer | Evgeny Egorochkin <phreedom@yandex.ru> | 2014-12-19 08:05:41 +0200 |
commit | 633cc58d5ca40ac0f6950e8c80136165fc7330c5 (patch) | |
tree | 5e964576aadcea157e519ab922d9847652bebbd0 /nixos | |
parent | 824b3b1a9958421ddfc9558b47272692f5eb9a5f (diff) | |
download | nixlib-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.nix | 2 |
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. |