puter/hosts/headless/vessel/syncthing.nix

17 lines
330 B
Nix
Raw Normal View History

2025-03-23 21:48:46 +00:00
# TODO: unify syncthing.nix files
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;
2025-03-23 21:48:46 +00:00
guiAddress = let
2024-09-15 14:15:47 +00:00
host = "0.0.0.0";
2025-03-23 21:48:46 +00:00
port = builtins.toString guiPort;
in "${host}:${port}";
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
}