The NixOS tor module already sets ExtORPort=auto when role=bridge. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
14 lines
315 B
Nix
14 lines
315 B
Nix
{ pkgs, ... }: {
|
|
services.tor = {
|
|
enable = true;
|
|
relay = {
|
|
enable = true;
|
|
role = "bridge";
|
|
};
|
|
settings = {
|
|
ServerTransportPlugin = "obfs4 exec ${pkgs.obfs4}/bin/obfs4proxy";
|
|
ServerTransportListenAddr = "obfs4 0.0.0.0:4430";
|
|
BridgeDistribution = "none";
|
|
};
|
|
};
|
|
}
|