summaryrefslogtreecommitdiffstats
path: root/krebs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2021-09-05 22:09:27 +0200
committerlassulus <lassulus@lassul.us>2021-09-05 23:04:05 +0200
commitaaae1b2f5b6532ae6f5def1678957e2a6dc00c28 (patch)
treed70518774907370325723607ca0a9de56e3496a7 /krebs
parent9202b9b33eaf60500f33c68a15d6d7ac3c9f7343 (diff)
hidden-ssh: fix to work with new nixos tor service
Diffstat (limited to 'krebs')
-rw-r--r--krebs/3modules/hidden-ssh.nix13
1 files changed, 8 insertions, 5 deletions
diff --git a/krebs/3modules/hidden-ssh.nix b/krebs/3modules/hidden-ssh.nix
index 1e56e62f9..4436a6167 100644
--- a/krebs/3modules/hidden-ssh.nix
+++ b/krebs/3modules/hidden-ssh.nix
@@ -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 = {