From 07a379310506eef9618154b2333c4dd2e5d57f1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Ci=C4=99=C5=BCarkiewicz?= Date: Mon, 17 Mar 2025 13:41:32 -0700 Subject: [PATCH] nixos/syncthing: make it easier to debug incorrect IDs In case of an incorrect ID, the behavior of this script is quite tricky. See: https://github.com/NixOS/nixpkgs/issues/326704#issuecomment-2730819822 for more info. --- nixos/modules/services/networking/syncthing.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/networking/syncthing.nix b/nixos/modules/services/networking/syncthing.nix index 91aa7f59cf96..fdf38ac75539 100644 --- a/nixos/modules/services/networking/syncthing.nix +++ b/nixos/modules/services/networking/syncthing.nix @@ -121,6 +121,7 @@ let '[.[].${s.GET_IdAttrName}] - $new_ids | .[]' )" for id in ''${stale_${conf_type}_ids}; do + >&2 echo "Deleting stale device: $id" curl -X DELETE ${s.baseAddress}/$id done ''