2023-09-10 17:07:11 +01:00
|
|
|
{ lib, user, group, ... }:
|
2023-09-10 21:28:37 +01:00
|
|
|
let
|
2023-10-02 07:31:48 +01:00
|
|
|
devices = [ "Legion" "Northstar" "Ronin" "Vanguard" ];
|
2023-09-10 21:28:37 +01:00
|
|
|
devicesWithPhone = devices ++ [ "Ion" ];
|
2023-06-28 19:56:54 +01:00
|
|
|
in {
|
2023-05-06 15:24:31 +01:00
|
|
|
services.syncthing = {
|
2023-09-10 17:07:11 +01:00
|
|
|
inherit user group;
|
2023-05-06 15:24:31 +01:00
|
|
|
enable = true;
|
2023-09-10 17:07:11 +01:00
|
|
|
dataDir = lib.mkDefault "/home/${user}";
|
2023-05-06 15:24:31 +01:00
|
|
|
systemService = true;
|
|
|
|
openDefaultPorts = true;
|
2023-07-24 13:29:09 +01:00
|
|
|
settings = {
|
|
|
|
devices = {
|
2023-09-10 17:07:11 +01:00
|
|
|
"Ion".id =
|
|
|
|
"7DD4NPH-6T2ET5A-4FCLFWW-CS6UR2W-IO5XQXC-DM5B2Q4-6X7DGU2-UKKVEAB";
|
|
|
|
"Legion".id =
|
|
|
|
"6OX54CG-EAQMXKA-K7TXB5P-G5A27HB-52JE2FA-XNAYZU6-YMIDBXP-RKPBJQV";
|
|
|
|
"Northstar".id =
|
|
|
|
"HNK5Z72-757G3BP-I4PBWXY-FM5FWCM-ES4XP56-E5ULWB5-RGRCBUI-RHWRXQV";
|
|
|
|
"Ronin".id =
|
|
|
|
"ZOL5YHK-ZZZULIE-UHGVKHW-H5E4BP7-S4CZBOX-OIZVUCV-RZUXOKA-QVBUBAJ";
|
2023-10-03 15:18:03 +01:00
|
|
|
"Scorch".id =
|
|
|
|
"VVKKUT6-DMNEJ6J-ZI2QREG-SOLG7S5-V2V6WN3-UCQH2EN-6S2XXLS-FKN6KQF";
|
2023-09-10 17:07:11 +01:00
|
|
|
"Vanguard".id =
|
|
|
|
"I366QNQ-D3FTDRX-RNOTXMW-YITZXOF-DSCDMQD-63Q72LI-ME2Y4HZ-T34RMQK";
|
2023-06-27 09:54:15 +01:00
|
|
|
};
|
2023-07-24 13:29:09 +01:00
|
|
|
folders = {
|
|
|
|
"Archive" = {
|
2023-08-30 07:28:36 +01:00
|
|
|
inherit devices;
|
2023-07-24 13:29:09 +01:00
|
|
|
id = "hwnqy-xzcdx";
|
|
|
|
path = lib.mkDefault "~/Documents/Archive";
|
|
|
|
ignorePerms = true;
|
|
|
|
};
|
|
|
|
"Books" = {
|
2023-08-30 07:28:36 +01:00
|
|
|
inherit devices;
|
2023-07-24 13:29:09 +01:00
|
|
|
id = "zjmxy-ycmbq";
|
|
|
|
path = lib.mkDefault "~/Documents/Books";
|
|
|
|
ignorePerms = true;
|
|
|
|
};
|
|
|
|
"Comics" = {
|
2023-08-30 07:28:36 +01:00
|
|
|
inherit devices;
|
2023-07-24 13:29:09 +01:00
|
|
|
id = "kc2h0-q3wot";
|
|
|
|
path = lib.mkDefault "~/Documents/Comics";
|
|
|
|
ignorePerms = true;
|
|
|
|
};
|
|
|
|
"Documents" = {
|
|
|
|
id = "qc6qa-bipsd";
|
|
|
|
path = lib.mkDefault "~/Documents/Sync";
|
|
|
|
ignorePerms = true;
|
2023-09-10 21:28:37 +01:00
|
|
|
devices = devicesWithPhone;
|
2023-07-24 13:29:09 +01:00
|
|
|
};
|
|
|
|
"Exports" = {
|
2023-08-30 07:28:36 +01:00
|
|
|
inherit devices;
|
2023-07-24 13:29:09 +01:00
|
|
|
id = "tof2e-pdtde";
|
|
|
|
path = lib.mkDefault "~/Documents/Exports";
|
|
|
|
ignorePerms = true;
|
|
|
|
};
|
|
|
|
"Notes" = {
|
|
|
|
id = "4ggjz-5dyop";
|
2023-07-30 16:15:32 +01:00
|
|
|
path = lib.mkDefault "~/Notes";
|
2023-07-24 13:29:09 +01:00
|
|
|
ignorePerms = true;
|
2023-09-10 21:28:37 +01:00
|
|
|
devices = devicesWithPhone;
|
2023-07-24 13:29:09 +01:00
|
|
|
};
|
|
|
|
"Pictures" = {
|
|
|
|
id = "ziuj8-rm6dn";
|
|
|
|
path = lib.mkDefault "~/Pictures";
|
|
|
|
ignorePerms = true;
|
2023-09-10 21:28:37 +01:00
|
|
|
devices = devicesWithPhone;
|
2023-07-24 13:29:09 +01:00
|
|
|
};
|
|
|
|
"Zotero" = {
|
|
|
|
id = "huyvn-liwc9";
|
|
|
|
path = lib.mkDefault "~/Documents/Zotero";
|
|
|
|
ignorePerms = true;
|
2023-09-10 21:28:37 +01:00
|
|
|
devices = devicesWithPhone;
|
2023-07-24 13:29:09 +01:00
|
|
|
};
|
2023-05-09 07:48:19 +01:00
|
|
|
};
|
|
|
|
};
|
2023-05-06 15:24:31 +01:00
|
|
|
};
|
|
|
|
}
|