puter/hosts/server/vessel/syncthing.nix
2024-12-01 04:05:16 +01:00

16 lines
288 B
Nix

{lib, ...}: let
guiPort = 8384;
in {
services.syncthing = {
enable = true;
systemService = true;
openDefaultPorts = true;
guiAddress = lib.formatHostPort {
host = "0.0.0.0";
port = guiPort;
};
};
networking.firewall.allowedTCPPorts = [guiPort];
}