niksos/hosts/chmura/syncthing.nix

18 lines
358 B
Nix
Raw Normal View History

2023-07-16 09:16:57 +02:00
{
config,
pkgs,
inputs,
...
}: {
services.syncthing = {
enable = true;
user = "syncthing";
dataDir = "/var/lib/syncthing";
overrideDevices = true;
overrideFolders = true;
};
networking.firewall.allowedTCPPorts = [ 8384 22000 ];
networking.firewall.allowedUDPPorts = [ 22000 21027 ];
}