From df67864b76fe7076be3933bae4580ec12c5ab9d1 Mon Sep 17 00:00:00 2001
From: Sakooooo <78461130+Sakooooo@users.noreply.github.com>
Date: Wed, 1 Jan 2025 15:03:30 +0400
Subject: [PATCH] allow forgejo ssh port

---
 modules/server/services/forgejo.nix | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/server/services/forgejo.nix b/modules/server/services/forgejo.nix
index 984ccebb..990e3656 100644
--- a/modules/server/services/forgejo.nix
+++ b/modules/server/services/forgejo.nix
@@ -5,6 +5,9 @@ in {
   options.void.server.services.forgejo = { enable = mkEnableOption false; };
 
   config = mkIf cfg.enable {
+
+    networking.firewall.allowedTCPPorts = [ 22 ];
+
     services.forgejo = {
       enable = true;
       database.type = "postgres";