mirror of
https://github.com/kmein/niveum
synced 2026-03-16 18:21:07 +01:00
24 lines
451 B
Nix
24 lines
451 B
Nix
{ config, lib, pkgs, ... }:
|
|
let
|
|
sshPort = pkgs.lib.niveum.machines.${config.networking.hostName}.sshPort;
|
|
in
|
|
{
|
|
services.tor.enable = true;
|
|
services.tor.client.enable = true;
|
|
environment.systemPackages = [
|
|
pkgs.tor
|
|
pkgs.torsocks
|
|
];
|
|
|
|
services.tor.relay.onionServices = {
|
|
"ssh" = {
|
|
version = 3;
|
|
map = [{
|
|
port = sshPort;
|
|
target.port = sshPort;
|
|
target.addr = "127.0.0.1";
|
|
}];
|
|
};
|
|
};
|
|
}
|