nix-config/hosts/nixos/modules/services/syncthing.nix
lightly-toasted 211d1aa452 feat(syncthing): add new device 'tablet'
- Added device 'tablet'
- Add tablet to obsidian folder
2025-09-14 13:17:47 +09:00

27 lines
739 B
Nix

{
services.syncthing = {
enable = true;
user = "toast";
group = "users";
configDir = "/home/toast/.config/syncthing";
extraFlags = [ "--no-default-folder" ];
overrideDevices = true;
overrideFolders = true;
settings = {
devices = {
"phone" = { id = "XIRT2YS-3PZY7PF-PL4QTYK-LCYCSKW-GARN5N6-KBWGSP6-YZDQGED-N7R6YQF"; };
"tablet" = { id = "BCSESXD-F5NOKTH-QPTHZEY-XITQPKC-BVWMA36-YM72QIS-JOUPIGN-2S7LRAU"; };
};
folders = {
"keepass" = {
path = "/data/Backup/Keepass/";
devices = [ "phone" ];
};
"obsidian" = {
path = "/data/Backup/Obsidian/";
devices = [ "phone" "tablet" ];
};
};
};
};
}