2023-06-28 19:56:54 +01:00
|
|
|
{lib, ...}: let
|
|
|
|
defaultDataDir = "/var/lib/syncthing";
|
2023-07-21 11:10:31 +01:00
|
|
|
deviceGroups = {
|
2023-07-21 11:12:34 +01:00
|
|
|
all = ["Ion" "Legion" "Monarch" "Ronin" "Vanguard"];
|
|
|
|
personal = ["Ion" "Legion" "Monarch" "Vanguard"];
|
2023-07-21 11:10:31 +01:00
|
|
|
work = ["Ion" "Legion" "Ronin"];
|
2023-07-21 11:12:34 +01:00
|
|
|
desktops = ["Legion" "Vanguard"];
|
2023-07-21 11:10:31 +01:00
|
|
|
mobile = ["Ion" "Legion" "Monarch" "Ronin"];
|
|
|
|
};
|
2023-06-28 19:56:54 +01:00
|
|
|
in {
|
2023-05-06 15:24:31 +01:00
|
|
|
services.syncthing = {
|
|
|
|
enable = true;
|
2023-07-16 17:35:36 +01:00
|
|
|
dataDir = lib.mkDefault defaultDataDir;
|
2023-05-06 15:24:31 +01:00
|
|
|
systemService = true;
|
|
|
|
openDefaultPorts = true;
|
2023-06-27 09:54:15 +01:00
|
|
|
devices = {
|
2023-06-27 13:46:28 +01:00
|
|
|
"Ion".id = "7DD4NPH-6T2ET5A-4FCLFWW-CS6UR2W-IO5XQXC-DM5B2Q4-6X7DGU2-UKKVEAB";
|
|
|
|
"Legion".id = "6OX54CG-EAQMXKA-K7TXB5P-G5A27HB-52JE2FA-XNAYZU6-YMIDBXP-RKPBJQV";
|
|
|
|
"Monarch".id = "CJSUZQY-67XBLEZ-VKVHQHI-BLEUZNF-G4237AV-AW44CGH-F3JDKXU-CWT3RQZ";
|
2023-07-21 11:10:31 +01:00
|
|
|
# "Nortstar".id = "";
|
2023-06-27 13:46:28 +01:00
|
|
|
"Ronin".id = "ZOL5YHK-ZZZULIE-UHGVKHW-H5E4BP7-S4CZBOX-OIZVUCV-RZUXOKA-QVBUBAJ";
|
|
|
|
"Vanguard".id = "I366QNQ-D3FTDRX-RNOTXMW-YITZXOF-DSCDMQD-63Q72LI-ME2Y4HZ-T34RMQK";
|
2023-06-27 09:54:15 +01:00
|
|
|
};
|
|
|
|
folders = {
|
|
|
|
"Archive" = {
|
|
|
|
id = "hwnqy-xzcdx";
|
2023-07-21 11:38:46 +01:00
|
|
|
path = lib.mkDefault "~/Documents/Archive";
|
2023-06-27 09:54:15 +01:00
|
|
|
ignorePerms = true;
|
2023-07-21 11:10:31 +01:00
|
|
|
devices = deviceGroups.desktops;
|
2023-06-27 09:54:15 +01:00
|
|
|
};
|
|
|
|
"Books" = {
|
|
|
|
id = "zjmxy-ycmbq";
|
2023-07-21 11:38:46 +01:00
|
|
|
path = lib.mkDefault "~/Documents/Books";
|
2023-06-27 09:54:15 +01:00
|
|
|
ignorePerms = true;
|
2023-07-21 11:10:31 +01:00
|
|
|
devices = deviceGroups.desktops;
|
2023-06-27 09:54:15 +01:00
|
|
|
};
|
|
|
|
"Comics" = {
|
|
|
|
id = "kc2h0-q3wot";
|
2023-07-21 11:38:46 +01:00
|
|
|
path = lib.mkDefault "~/Documents/Comics";
|
2023-06-27 09:54:15 +01:00
|
|
|
ignorePerms = true;
|
2023-07-21 11:10:31 +01:00
|
|
|
devices = deviceGroups.desktops;
|
2023-06-27 09:54:15 +01:00
|
|
|
};
|
|
|
|
"Documents" = {
|
|
|
|
id = "qc6qa-bipsd";
|
2023-07-21 11:38:46 +01:00
|
|
|
path = lib.mkDefault "~/Documents/Sync";
|
2023-06-27 09:54:15 +01:00
|
|
|
ignorePerms = true;
|
2023-07-21 11:10:31 +01:00
|
|
|
devices = deviceGroups.desktops;
|
2023-06-27 09:54:15 +01:00
|
|
|
};
|
|
|
|
"Exports" = {
|
|
|
|
id = "tof2e-pdtde";
|
2023-07-21 11:38:46 +01:00
|
|
|
path = lib.mkDefault "~/Documents/Exports";
|
2023-06-27 09:54:15 +01:00
|
|
|
ignorePerms = true;
|
2023-07-21 11:10:31 +01:00
|
|
|
devices = deviceGroups.desktops;
|
2023-06-27 09:54:15 +01:00
|
|
|
};
|
|
|
|
"Notes" = {
|
|
|
|
id = "4ggjz-5dyop";
|
2023-07-21 11:38:46 +01:00
|
|
|
path = lib.mkDefault "~/notes";
|
2023-06-27 09:54:15 +01:00
|
|
|
ignorePerms = true;
|
2023-07-21 11:10:31 +01:00
|
|
|
devices = deviceGroups.all;
|
2023-06-27 09:54:15 +01:00
|
|
|
};
|
|
|
|
"Pictures" = {
|
|
|
|
id = "ziuj8-rm6dn";
|
2023-07-21 11:38:46 +01:00
|
|
|
path = lib.mkDefault "~/Pictures";
|
2023-06-27 09:54:15 +01:00
|
|
|
ignorePerms = true;
|
2023-07-21 11:10:31 +01:00
|
|
|
devices = deviceGroups.personal;
|
2023-06-27 09:54:15 +01:00
|
|
|
};
|
2023-07-21 11:10:31 +01:00
|
|
|
"Tasks" = {
|
|
|
|
id = "qzdat-3zzhw";
|
|
|
|
path = lib.mkDefault "~/.local/share/task";
|
2023-06-27 09:54:15 +01:00
|
|
|
ignorePerms = true;
|
2023-07-21 11:10:31 +01:00
|
|
|
devices = deviceGroups.all;
|
2023-06-27 09:54:15 +01:00
|
|
|
};
|
|
|
|
"Zotero" = {
|
|
|
|
id = "huyvn-liwc9";
|
2023-07-21 11:38:46 +01:00
|
|
|
path = lib.mkDefault "~/Documents/Zotero";
|
2023-06-27 09:54:15 +01:00
|
|
|
ignorePerms = true;
|
2023-07-21 11:10:31 +01:00
|
|
|
devices = deviceGroups.all;
|
2023-05-09 07:48:19 +01:00
|
|
|
};
|
|
|
|
};
|
2023-05-06 15:24:31 +01:00
|
|
|
};
|
|
|
|
}
|