services.syncthing.openDefaultPorts

NixOS option

Whether to open the default ports in the firewall: TCP/UDP 22000 for transfers and UDP 21027 for discovery. If multiple users are running Syncthing on this machine, you will need to manually open a set of ports for each instance and leave this disabled. Alternatively, if you are running only a single instance on this machine using the default ports, enable this.

type: boolean
Default
false
Example
true
declared in: nixos/modules/services/networking/syncthing.nixView source on NixOS/nixpkgs →