{ pkgs, lib, config, machines, ... }: { systemd.services.ssh-mermet-reverse = { after = [ "network-online.target" ]; wantedBy = [ "multi-user.target" ]; serviceConfig = { Type = "simple"; ExecStart = ''${pkgs.openssh}/bin/ssh -v -g -N -T \ -o ServerAliveInterval=10 \ -o ExitOnForwardFailure=yes \ -R *:10022:localhost:22 \ ${machines.mermet.extraArgs.ipv4} ''; Restart = "always"; RestartSec = "5s"; }; }; }