2023-04-17 21:20:06 +01:00
|
|
|
{ config, username, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
services.syncthing = {
|
|
|
|
enable = true;
|
|
|
|
user = "${username}";
|
|
|
|
group = "users";
|
|
|
|
dataDir = "/home/${username}";
|
|
|
|
configDir = "/home/${username}/.config/syncthing";
|
|
|
|
guiAddress = "0.0.0.0:8384";
|
|
|
|
overrideFolders = true;
|
2023-04-23 16:37:22 +01:00
|
|
|
overrideDevices = true;
|
2023-04-18 07:02:51 +01:00
|
|
|
devices = {
|
|
|
|
"M.Phone.Pixel" = { id = "WMGWVOU-DFZQSZO-46XQJQA-Q5XD5ZB-NDXK5SP-LXNAADH-Z2KJN4P-4P4UXA5"; };
|
2023-04-23 19:54:17 +01:00
|
|
|
"M.MacBookPro" = { id = "A5HRCSI-RWYZ6GG-SCBZ2OJ-PG6T7VP-WKDN2VP-CNXIQ3B-VCJ7ZHO-MTV63QP"; };
|
2023-04-18 07:02:51 +01:00
|
|
|
"Lambda" = { id = "ZYNSFWR-F3ZNDDT-66TSJWB-PRP3KQK-IWTTABU-GGWT5DL-RWC7VAE-LI5AXQQ"; };
|
|
|
|
};
|
2023-04-17 21:20:06 +01:00
|
|
|
folders = {
|
|
|
|
"Documents" = {
|
|
|
|
path = "/home/${username}/Documents";
|
2023-05-01 19:48:07 +01:00
|
|
|
devices = [ "M.Phone.Pixel" "M.MacBookPro" ];
|
2023-04-17 21:20:06 +01:00
|
|
|
};
|
|
|
|
"Pictures" = {
|
|
|
|
path = "/home/${username}/Pictures";
|
2023-05-01 19:48:07 +01:00
|
|
|
devices = [ "M.Phone.Pixel" "M.MacBookPro" ];
|
2023-04-17 21:20:06 +01:00
|
|
|
};
|
|
|
|
"Videos" = {
|
|
|
|
path = "/home/${username}/Videos";
|
2023-05-01 19:48:07 +01:00
|
|
|
devices = [ "M.Phone.Pixel" "M.MacBookPro" ];
|
2023-04-17 21:20:06 +01:00
|
|
|
};
|
|
|
|
"Music" = {
|
|
|
|
path = "/home/${username}/Music";
|
2023-05-01 19:48:07 +01:00
|
|
|
devices = [ "M.Phone.Pixel" "M.MacBookPro" ];
|
2023-04-18 07:02:51 +01:00
|
|
|
};
|
|
|
|
"Android Camera" = {
|
|
|
|
id = "pixel_7_pro_2qyx-photos";
|
|
|
|
path = "/home/${username}/Pictures/DCIM";
|
2023-05-01 19:48:07 +01:00
|
|
|
devices = [ "M.Phone.Pixel" "M.MacBookPro" ];
|
2023-04-17 21:20:06 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|