From e09f66ea4c31e95a365292a03d39ef3ffcda608b Mon Sep 17 00:00:00 2001
From: Rutherther <rutherther@proton.me>
Date: Fri, 22 Sep 2023 19:00:05 +0200
Subject: [PATCH] fix: add necessary firewall syncthing settings

---
 modules/services/syncthing.nix | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/services/syncthing.nix b/modules/services/syncthing.nix
index 488397e..2cf5074 100644
--- a/modules/services/syncthing.nix
+++ b/modules/services/syncthing.nix
@@ -1,6 +1,11 @@
 { config, lib, pkgs, user, ... }:
 
 {
+  networking.firewall = {
+    allowedTCPPorts = [ 22000 ];
+    allowedUDPPorts = [ 22000 21027 ];
+  };
+
   services.syncthing = {
     enable = true;
     user = "${user}";
-- 
2.48.1