puter/hosts/vessel/syncthing.nix

13 lines
242 B
Nix
Raw Normal View History

2024-08-18 18:58:05 +00:00
let
guiPort = 8384;
in {
2024-08-18 00:55:37 +00:00
services.syncthing = {
enable = true;
systemService = true;
openDefaultPorts = true;
2024-08-18 21:17:36 +00:00
guiAddress = "0.0.0.0:${builtins.toString 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
}