1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
Files
niveum/configs/tor.nix

31 lines
483 B
Nix
Raw Normal View History

2025-12-29 15:26:13 +01:00
{
config,
lib,
pkgs,
...
}:
2025-12-29 12:27:40 +01:00
let
sshPort = pkgs.lib.niveum.machines.${config.networking.hostName}.sshPort;
in
2025-12-27 22:22:54 +01:00
{
2020-10-27 12:03:56 +01:00
services.tor.enable = true;
services.tor.client.enable = true;
2025-12-27 22:22:54 +01:00
environment.systemPackages = [
pkgs.tor
pkgs.torsocks
];
2025-12-29 12:27:40 +01:00
services.tor.relay.onionServices = {
"ssh" = {
version = 3;
2025-12-29 15:26:13 +01:00
map = [
{
port = sshPort;
target.port = sshPort;
target.addr = "127.0.0.1";
}
];
2025-12-29 12:27:40 +01:00
};
};
2020-10-27 12:03:56 +01:00
}