From c6df96cfea8d606003fb514888aaeb4cf49915b6 Mon Sep 17 00:00:00 2001 From: xunuwu Date: Sat, 11 Oct 2025 17:15:25 +0200 Subject: [PATCH] make ssh port 2050 unit actually start automatically --- hosts/nixdesk/profiles/ssh-public-port-2050.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/hosts/nixdesk/profiles/ssh-public-port-2050.nix b/hosts/nixdesk/profiles/ssh-public-port-2050.nix index 07ee9c5..f97ee23 100644 --- a/hosts/nixdesk/profiles/ssh-public-port-2050.nix +++ b/hosts/nixdesk/profiles/ssh-public-port-2050.nix @@ -2,6 +2,7 @@ systemd.services.ssh-port2050-natpmp = { bindsTo = ["sshd.socket"]; after = ["sshd.socket"]; + wantedBy = ["multi-user.target"]; serviceConfig.Restart = "on-failure"; serviceConfig.ExecStart = pkgs.writeScript "ssh-port2050-natpmp" '' #!${pkgs.bash}/bin/bash