From c8026139bc70cc2c45e850878d528a3b1473d613 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Tue, 10 Dec 2024 00:36:05 +0300 Subject: [PATCH] Syncthing: Only sync the needed dirs. --- config/Syncthing.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/Syncthing.nix b/config/Syncthing.nix index 0e8579a7..4d321053 100644 --- a/config/Syncthing.nix +++ b/config/Syncthing.nix @@ -41,7 +41,7 @@ in { folders = let allMyDevices = lib.mapAttrsToList (n: v: n) myDevices; allDashaDevices = lib.mapAttrsToList (n: v: n) dashaDevices; - in { + in lib.filterAttrs (n: v: builtins.elem config.networking.hostName v.devices) { "save" = { path = "${cfg.dataDir}/save"; devices = [