syncthing: added work laptop sync

This commit is contained in:
Tigor Hutasuhut 2024-06-21 21:48:50 +07:00
parent 96c423a772
commit 9bd73d059e

View file

@ -41,6 +41,9 @@ in
"/nas/redmage/images/laptop-kerja" = { "/nas/redmage/images/laptop-kerja" = {
label = "Redmage/Laptop-Kerja"; label = "Redmage/Laptop-Kerja";
id = "Redmage/Laptop-Kerja"; id = "Redmage/Laptop-Kerja";
devices = [
"work-laptop"
];
}; };
"/nas/redmage/images/s20fe-sfw" = { "/nas/redmage/images/s20fe-sfw" = {
label = "Redmage/S20FE"; label = "Redmage/S20FE";
@ -65,6 +68,11 @@ in
"onyx" "onyx"
]; ];
}; };
"/nas/Syncthing/Sync/VPN" = {
label = "OpenVPN";
id = "OpenVPN";
devices = lib.attrsets.mapAttrsToList (key: _value: key) config.services.syncthing.settings.devices;
};
}; };
devices = { devices = {
s20fe = { s20fe = {
@ -82,6 +90,11 @@ in
id = "FSTIYS6-REFXIJX-KPLYC4L-QSZO46L-RV3VTPZ-VWVTE7O-Y663OZN-RTKP3QI"; id = "FSTIYS6-REFXIJX-KPLYC4L-QSZO46L-RV3VTPZ-VWVTE7O-Y663OZN-RTKP3QI";
autoAcceptFolders = true; autoAcceptFolders = true;
}; };
work-laptop = {
name = "Work Laptop";
id = "BOU76IK-5AE7ARF-ZQDFOTX-KWUQL22-SAGXBYG-B75JRZA-L4MCYPU-OYTY5AU";
autoAcceptFolders = true;
};
}; };
}; };
overrideFolders = true; overrideFolders = true;