summaryrefslogtreecommitdiffstats
path: root/lass/2configs/tor-ssh.nix
blob: c727aa015bf8f576060435a76fa162e74289ea95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
  services.tor = {
    enable = true;
    relay.onionServices.ssh = {
      version = 3;
      map = [{
        port = 22;
        target.port = 22;
      }];
      secretKey = <secrets/ssh-tor.priv>;
    };
    controlSocket.enable = true;
    client.enable = true;
  };
}