18 lines
358 B
Nix
18 lines
358 B
Nix
|
{
|
||
|
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 ];
|
||
|
}
|