]> Git — Sourcephile - sourcephile-nix.git/blob - machines/losurdo/networking/ssh.nix
wireguard: setup intranet
[sourcephile-nix.git] / machines / losurdo / networking / ssh.nix
1 { pkgs, lib, config, machines, ... }:
2 {
3 systemd.services.ssh-mermet-reverse = {
4 after = [ "network-online.target" ];
5 wantedBy = [ "multi-user.target" ];
6 serviceConfig = {
7 Type = "simple";
8 ExecStart = ''${pkgs.openssh}/bin/ssh -v -g -N -T \
9 -o ServerAliveInterval=10 \
10 -o ExitOnForwardFailure=yes \
11 -R *:10022:localhost:22 \
12 ${machines.mermet.extraArgs.ipv4}
13 '';
14 Restart = "always";
15 RestartSec = "5s";
16 };
17 };
18 }