config/systems/mdesktop/syncthing.nix

42 lines
1.1 KiB
Nix
Raw Normal View History

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"; };
"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-04-18 07:02:51 +01:00
devices = [ "M.Phone.Pixel" ];
2023-04-17 21:20:06 +01:00
};
"Pictures" = {
path = "/home/${username}/Pictures";
2023-04-18 07:02:51 +01:00
devices = [ "M.Phone.Pixel" ];
2023-04-17 21:20:06 +01:00
};
"Videos" = {
path = "/home/${username}/Videos";
2023-04-18 07:02:51 +01:00
devices = [ "M.Phone.Pixel" ];
2023-04-17 21:20:06 +01:00
};
"Music" = {
path = "/home/${username}/Music";
2023-04-18 07:02:51 +01:00
devices = [ "M.Phone.Pixel" ];
};
"Android Camera" = {
id = "pixel_7_pro_2qyx-photos";
path = "/home/${username}/Pictures/DCIM";
devices = [ "M.Phone.Pixel" ];
2023-04-17 21:20:06 +01:00
};
};
};
}