From 6dfacb91da2bc94c25a0ff079280dc1b76b1e563 Mon Sep 17 00:00:00 2001 From: Nathan Date: Thu, 22 Jan 2026 12:10:02 -0600 Subject: [PATCH] proper ssh port --- system/services/openssh/default.nix | 2 +- system/virtualization/containers/gitea/default.nix | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/system/services/openssh/default.nix b/system/services/openssh/default.nix index 5568da5..d754b03 100644 --- a/system/services/openssh/default.nix +++ b/system/services/openssh/default.nix @@ -11,7 +11,7 @@ services.openssh = { enable = true; - openFirewall = true; + openFirewall = lib.mkDefault true; settings = { PermitRootLogin = lib.mkForce "no"; PasswordAuthentication = false; diff --git a/system/virtualization/containers/gitea/default.nix b/system/virtualization/containers/gitea/default.nix index 6ede9e1..ffd9d09 100644 --- a/system/virtualization/containers/gitea/default.nix +++ b/system/virtualization/containers/gitea/default.nix @@ -17,12 +17,8 @@ "gitea/dbpass" = {}; }; - services.openssh.ports = [ - 2222 - ]; - networking.firewall.allowedTCPPorts = [ - 22 + 2222 ]; containers.gitea = { @@ -35,7 +31,7 @@ forwardPorts = [ { containerPort = 22; - hostPort = 22; + hostPort = 2222; } ];