torsocks: enable by default if tor client functionality is enabled

This commit is contained in:
Evgeny Egorochkin 2014-12-19 05:58:03 +02:00
parent 824b3b1a99
commit 633cc58d5c

View File

@ -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.