1
0
Fork 0
puter/hosts/headless/vessel/syncthing.nix

16 lines
288 B
Nix
Raw Normal View History

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