From 513ba7745897bf2690dcfb47586a33cd52103474 Mon Sep 17 00:00:00 2001 From: lightly-toasted Date: Fri, 12 Sep 2025 23:13:08 +0900 Subject: [PATCH] feat(nixos): declare syncthing settings --- hosts/nixos/modules/services/syncthing.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/hosts/nixos/modules/services/syncthing.nix b/hosts/nixos/modules/services/syncthing.nix index 2bcd3b5..38b0db7 100644 --- a/hosts/nixos/modules/services/syncthing.nix +++ b/hosts/nixos/modules/services/syncthing.nix @@ -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" ]; + }; + }; + }; }; }