mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-23 22:19:33 +01:00
dns over tor: cleanup
This commit is contained in:
parent
5784cb9060
commit
d43f4dc991
@ -227,7 +227,6 @@
|
|||||||
# Solution: Proxy dnscrypt-proxy through Tor
|
# Solution: Proxy dnscrypt-proxy through Tor
|
||||||
# - Currently, we have this enabled.
|
# - Currently, we have this enabled.
|
||||||
# - The latency of DNS queries is higher than without Tor - at about 130ms.
|
# - The latency of DNS queries is higher than without Tor - at about 130ms.
|
||||||
|
|
||||||
if config.services.tor.torsocks.enable
|
if config.services.tor.torsocks.enable
|
||||||
then {
|
then {
|
||||||
# Route all TCP connections to a local Tor node.
|
# Route all TCP connections to a local Tor node.
|
||||||
|
@ -9,15 +9,11 @@
|
|||||||
services = {
|
services = {
|
||||||
tor = {
|
tor = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# Disable GeoIP to prevent the Tor client from estimating the locations of Tor nodes it connects to.
|
|
||||||
#enableGeoIP = false;
|
|
||||||
# Enable Torsocks for transparent proxying of applications through Tor.
|
# Enable Torsocks for transparent proxying of applications through Tor.
|
||||||
torsocks.enable = true;
|
torsocks.enable = true;
|
||||||
client = {
|
client = {
|
||||||
# Enable the Tor client.
|
# Enable the Tor client.
|
||||||
enable = true;
|
enable = true;
|
||||||
# Enable DNS resolver.
|
|
||||||
dns.enable = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user