hidden-ssh: fix to work with new nixos tor service

This commit is contained in:
lassulus 2021-09-05 22:09:27 +02:00
parent 9202b9b33e
commit aaae1b2f5b

View File

@ -27,14 +27,17 @@ let
imp = let
torDirectory = "/var/lib/tor"; # from tor.nix
hiddenServiceDir = torDirectory + "/ssh-announce-service";
hiddenServiceDir = torDirectory + "/onion/hidden-ssh";
in {
services.tor = {
enable = true;
extraConfig = ''
HiddenServiceDir ${hiddenServiceDir}
HiddenServicePort 22 127.0.0.1:22
'';
relay.onionServices.hidden-ssh = {
version = 3;
map = [{
port = 22;
target.port = 22;
}];
};
client.enable = true;
};
systemd.services.hidden-ssh-announce = {