From 633cc58d5ca40ac0f6950e8c80136165fc7330c5 Mon Sep 17 00:00:00 2001 From: Evgeny Egorochkin Date: Fri, 19 Dec 2014 05:58:03 +0200 Subject: [PATCH] torsocks: enable by default if tor client functionality is enabled --- nixos/modules/services/security/torsocks.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/security/torsocks.nix b/nixos/modules/services/security/torsocks.nix index 5361d924ebe..093a105bc31 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 /etc/tor/torsocks.conf containing the specified global torsocks configuration.