nixos/config/hosts/capetillo/services/tor.nix

28 lines
423 B
Nix
Raw Normal View History

2021-11-26 13:45:04 +00:00
{config, ...}:
{
services.tor = {
enable = true;
enableGeoIP = false;
settings = {
HiddenServiceNonAnonymousMode = true;
Sandbox = true;
};
relay.onionServices = {
nixaalborg = {
version = 3;
map = [{
port = 80;
target = {
# TODO: Do this with unix sockets instead
addr = "[::1]";
port = 8080;
};
}];
settings = {
hiddenServiceSingleHopMode = true;
};
};
};
};
}