puter/hosts/headless/vessel/syncthing.nix
2025-01-09 00:15:30 +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];
}