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

tor: enable ssh

This commit is contained in:
2025-12-29 12:27:40 +01:00
parent c3dc7b9e51
commit f70383c732
6 changed files with 90 additions and 1 deletions

View File

@@ -1,4 +1,7 @@
{ pkgs, ... }:
{ config, lib, pkgs, ... }:
let
sshPort = pkgs.lib.niveum.machines.${config.networking.hostName}.sshPort;
in
{
services.tor.enable = true;
services.tor.client.enable = true;
@@ -6,4 +9,15 @@
pkgs.tor
pkgs.torsocks
];
services.tor.relay.onionServices = {
"ssh" = {
version = 3;
map = [{
port = sshPort;
target.port = sshPort;
target.addr = "127.0.0.1";
}];
};
};
}