l: add tor-ssh.nix

This commit is contained in:
lassulus 2022-05-29 13:49:18 +02:00
parent db7da0a5d5
commit a6ec22808c
2 changed files with 15 additions and 0 deletions

View File

@ -10,6 +10,7 @@ with import <stockholm/lib>;
./htop.nix ./htop.nix
<stockholm/krebs/2configs/security-workarounds.nix> <stockholm/krebs/2configs/security-workarounds.nix>
./wiregrill.nix ./wiregrill.nix
./tor-ssh.nix
{ {
users.extraUsers = users.extraUsers =
mapAttrs (_: h: { hashedPassword = h; }) mapAttrs (_: h: { hashedPassword = h; })

14
lass/2configs/tor-ssh.nix Normal file
View File

@ -0,0 +1,14 @@
{
services.tor = {
enable = true;
relay.onionServices.ssh = {
version = 3;
map = [{
port = 22;
target.port = 22;
}];
secretKey = <secrets/ssh-tor.priv>;
};
};
}