mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-10-04 11:35:41 +00:00
feat(nixos): declare syncthing settings
This commit is contained in:
parent
959d504283
commit
513ba77458
1 changed files with 20 additions and 0 deletions
|
@ -1,6 +1,26 @@
|
|||
{
|
||||
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"; };
|
||||
};
|
||||
folders = {
|
||||
"keepass" = {
|
||||
path = "/data/Backup/Keepass/";
|
||||
devices = [ "phone" ];
|
||||
};
|
||||
"obsidian" = {
|
||||
path = "/home/toast/Obsidian/";
|
||||
devices = [ "phone" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue