raito-shared-public-infra/modules/tor-ssh.nix
raito 107cc6e53f infra: steal from the best
(Mic92's cluster TUM's infra.)
2023-06-05 19:25:23 +02:00

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;
};
};
}