summaryrefslogtreecommitdiffstats
path: root/lass/2configs/tor-ssh.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-05-29 13:49:18 +0200
committerlassulus <lassulus@lassul.us>2022-05-29 13:49:18 +0200
commita6ec22808c3cf893fdf07f08d0529aace9480664 (patch)
tree06537c3dac2e29ae21921acbbea0916c533bbdd0 /lass/2configs/tor-ssh.nix
parentdb7da0a5d57d64681ab999f2accd115139abe1db (diff)
l: add tor-ssh.nix
Diffstat (limited to 'lass/2configs/tor-ssh.nix')
-rw-r--r--lass/2configs/tor-ssh.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/lass/2configs/tor-ssh.nix b/lass/2configs/tor-ssh.nix
new file mode 100644
index 000000000..8b36733e2
--- /dev/null
+++ b/lass/2configs/tor-ssh.nix
@@ -0,0 +1,14 @@
+{
+ services.tor = {
+ enable = true;
+ relay.onionServices.ssh = {
+ version = 3;
+ map = [{
+ port = 22;
+ target.port = 22;
+ }];
+ secretKey = <secrets/ssh-tor.priv>;
+ };
+ };
+}
+