blob: 8fca87bee52627eef26de648e36d47e8243af2e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
{ ... }:
{
services.syncthing = {
enable = true;
devices = {
"sparky" = {
id = "FE43LDI-33WS467-LIGFWCC-5PPSKN6-GYODEWJ-KLQZLN7-H3GYGLG-IJ2JGQW";
autoAcceptFolders = true;
};
};
folders = {
"Sync" = {
id = "7thks-5badk";
path = "/var/lib/syncthing/Sync";
versioning = {
type = "staggered";
params = {
cleanInterval = "3600";
maxAge = "31536000";
};
};
devices = [ "sparky" ];
};
};
};
networking.firewall.allowedTCPPorts = [ 22000 ];
networking.firewall.allowedUDPPorts = [ 21027 22000 ];
}
|