Opens syncthing firewall prots.

This commit is contained in:
Bailey 2024-03-23 23:17:18 -04:00
parent aaf2232003
commit 9ded5f63fb
2 changed files with 8 additions and 1 deletions

View file

@ -4,4 +4,6 @@
private = false;
minimal = true;
};
services.syncthing.enable = true;
}

View file

@ -135,7 +135,12 @@ in
# Dont start tailscale on boot, interferes with nebula but useful as a fallback.
systemd.services.tailscaled.enable = lib.mkForce false;
services.syncthing.openDefaultPorts = lib.mkDefault cfg.private;
# Open ports for syncthing user service.
networking.firewall = {
enable = true;
allowedTCPPorts = [ 22000 ];
allowedUDPPorts = [ 22000 ];
};
boot.binfmt.emulatedSystems = lib.optionals (!cfg.minimal) [ "aarch64-linux" "riscv64-linux" ];