forked from raito/shared-public-infra
19 lines
403 B
Nix
19 lines
403 B
Nix
|
{
|
||
|
# imports = [ ./sshd ];
|
||
|
services.tor = {
|
||
|
enable = true;
|
||
|
relay.onionServices."ssh".map = [{ port = 22; }];
|
||
|
|
||
|
settings = {
|
||
|
DnsPort = 9053;
|
||
|
AutomapHostsOnResolve = true;
|
||
|
AutomapHostsSuffixes = [ ".exit" ".onion" ];
|
||
|
EnforceDistinctSubnets = true;
|
||
|
ExitNodes = "{fr}";
|
||
|
EntryNodes = "{fr}";
|
||
|
NewCircuitPeriod = 120;
|
||
|
DNSPort = 9053;
|
||
|
};
|
||
|
};
|
||
|
}
|