nixos/tor: add obfs4Package option
This commit is contained in:
@@ -456,6 +456,8 @@ in
|
||||
|
||||
package = lib.mkPackageOption pkgs "tor" { };
|
||||
|
||||
obfs4Package = lib.mkPackageOption pkgs "obfs4" { };
|
||||
|
||||
enableGeoIP =
|
||||
lib.mkEnableOption ''
|
||||
use of GeoIP databases.
|
||||
@@ -1253,7 +1255,7 @@ in
|
||||
BridgeRelay = true;
|
||||
ExtORPort.port = lib.mkDefault "auto";
|
||||
ServerTransportPlugin.transports = lib.mkDefault [ "obfs4" ];
|
||||
ServerTransportPlugin.exec = lib.mkDefault "${lib.getExe pkgs.obfs4} managed";
|
||||
ServerTransportPlugin.exec = lib.mkDefault "${lib.getExe cfg.obfs4Package} managed";
|
||||
}
|
||||
// lib.optionalAttrs (cfg.relay.role == "private-bridge") {
|
||||
ExtraInfoStatistics = false;
|
||||
|
||||
Reference in New Issue
Block a user