nixos/services/syncthing.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

2024-01-30 14:21:50 +00:00
{...}: let
devices = ["Ion" "Legion" "Northstar" "Vanguard"];
in {
2024-01-30 14:21:50 +00:00
imports = [./caddy.nix];
services.syncthing = {
enable = true;
systemService = true;
overrideDevices = true;
overrideFolders = true;
openDefaultPorts = true;
settings = {
devices = {
2024-01-30 14:21:50 +00:00
"Ion".id = "7DD4NPH-6T2ET5A-4FCLFWW-CS6UR2W-IO5XQXC-DM5B2Q4-6X7DGU2-UKKVEAB";
"Legion".id = "3SSNCLP-ZZKNS65-7CKKGFY-KJYQU6S-P5BM7SB-MMW5ZLM-TMND6IV-ZMUO4AQ";
2024-04-20 13:34:49 +01:00
"Northstar".id = "MXF5AXH-AOOVOSC-OYZP7O3-L4SN3RI-BWX3J4X-YJDY5GS-3TM7SPF-MDORAAW";
"Vanguard".id = "YELFAIP-4VBWPRX-CB7RNJD-RPBQ6KN-CGTMIBO-FK7EPTH-ZXYS6AF-C6WKOQT";
};
folders = {
"Music" = {
2024-04-17 17:48:18 +01:00
inherit devices;
id = "munzw-vnxhl";
path = "~/Music";
ignorePerms = true;
};
"Pictures" = {
inherit devices;
id = "ziuj8-rm6dn";
path = "~/Pictures";
ignorePerms = true;
};
"Videos" = {
inherit devices;
id = "mbsop-qteua";
path = "~/Videos";
ignorePerms = true;
};
2023-05-09 07:48:19 +01:00
};
};
};
}