move enforceTor logic to service modules
This enables tor support for services without using secure-node.nix
This commit is contained in:
parent
0cc8caa737
commit
e0675cb256
6 changed files with 9 additions and 21 deletions
|
|
@ -160,7 +160,7 @@ in {
|
|||
};
|
||||
proxy = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
default = if cfg.enforceTor then config.services.tor.client.socksListenAddress else null;
|
||||
description = "Connect through SOCKS5 proxy";
|
||||
};
|
||||
listen = mkOption {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue