puter/hosts/headless/vessel/syncthing.nix

16 lines
288 B
Nix
Raw Normal View History

2024-09-15 14:15:47 +00:00
{lib, ...}: let
2024-08-18 18:58:05 +00:00
guiPort = 8384;
in {
2024-08-18 00:55:37 +00:00
services.syncthing = {
enable = true;
systemService = true;
openDefaultPorts = true;
2024-09-15 14:15:47 +00:00
guiAddress = lib.formatHostPort {
host = "0.0.0.0";
port = guiPort;
};
2024-08-18 00:55:37 +00:00
};
2024-08-18 18:58:05 +00:00
networking.firewall.allowedTCPPorts = [guiPort];
2024-08-18 00:55:37 +00:00
}