move enforceTor logic to service modules
This enables tor support for services without using secure-node.nix
This commit is contained in:
@@ -38,7 +38,7 @@ in {
|
||||
};
|
||||
proxy = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
default = if cfg.enforceTor then config.services.tor.client.socksListenAddress else null;
|
||||
description = "host:port of SOCKS5 proxy for connnecting to the loop server.";
|
||||
};
|
||||
extraConfig = mkOption {
|
||||
|
||||
Reference in New Issue
Block a user