From 01c8356b30da54b492a9ab0add30f29c02967ef1 Mon Sep 17 00:00:00 2001 From: Krzysztof Saczuk Date: Tue, 3 Sep 2024 07:30:32 +0200 Subject: [PATCH] feat(services): add persistent peer and sync file ownership in syncthing --- modules/services/syncthing.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/services/syncthing.nix b/modules/services/syncthing.nix index 07d90d8..a3d139d 100644 --- a/modules/services/syncthing.nix +++ b/modules/services/syncthing.nix @@ -67,13 +67,20 @@ in { devices = { nixos.id = "QUDUYTK-C7ES7PH-SLQZW47-FBBSXKP-KMI6V4N-3PFF2AU-AJFOX3W-JZ4USQ4"; laptop.id = "ZYICIZR-XBL4Q2B-UJAC3P7-ATZE465-J6IVQIM-ZR24CBB-FWIAT27-BPU3HQM"; + "sync.zakku.eu" = { + id = "6JPV4AX-4ALKGHX-YKKQYNR-IJPTK2O-S6TV2AM-GZ6KDA3-EZ6TNGF-ZZQIDAL"; + addresses = [ + "tcp://51.83.129.177:32627" + ]; + }; }; folders = { "Development" = { id = "hVYpBP-yrTzAX-PxYRGw-UHvw"; path = "${homeDirectory}/dev"; - devices = ["nixos" "laptop"]; + devices = ["nixos" "laptop" "sync.zakku.eu"]; + syncOwnership = true; }; }; };