make ssh port 2050 unit actually start automatically

This commit is contained in:
xunuwu 2025-10-11 17:15:25 +02:00
parent 6c46e5d5a7
commit c6df96cfea
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI

View file

@ -2,6 +2,7 @@
systemd.services.ssh-port2050-natpmp = { systemd.services.ssh-port2050-natpmp = {
bindsTo = ["sshd.socket"]; bindsTo = ["sshd.socket"];
after = ["sshd.socket"]; after = ["sshd.socket"];
wantedBy = ["multi-user.target"];
serviceConfig.Restart = "on-failure"; serviceConfig.Restart = "on-failure";
serviceConfig.ExecStart = pkgs.writeScript "ssh-port2050-natpmp" '' serviceConfig.ExecStart = pkgs.writeScript "ssh-port2050-natpmp" ''
#!${pkgs.bash}/bin/bash #!${pkgs.bash}/bin/bash