0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00

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.