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

24 lines
451 B
Nix
Raw Normal View History

2025-12-29 12:27:40 +01:00
{ config, lib, pkgs, ... }:
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;
map = [{
port = sshPort;
target.port = sshPort;
target.addr = "127.0.0.1";
}];
};
};
2020-10-27 12:03:56 +01:00
}