From cf6ae51a0fbc8d7eed994a192b1fed9bcf1e16b1 Mon Sep 17 00:00:00 2001 From: Kopatz <7265381+Kropatz@users.noreply.github.com> Date: Sat, 11 Jul 2026 13:53:03 +0200 Subject: [PATCH] nixos/syncthing: fix unix socket curl address --- nixos/modules/services/networking/syncthing.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/networking/syncthing.nix b/nixos/modules/services/networking/syncthing.nix index 0359499826f2..413ac1795bf2 100644 --- a/nixos/modules/services/networking/syncthing.nix +++ b/nixos/modules/services/networking/syncthing.nix @@ -25,10 +25,10 @@ let if isUnixGui # if cfg.guiAddress is a unix socket, tell curl explicitly about it - # note that the dot in front of `${path}` is the hostname, which is + # note that the syncthing.local in front of `${path}` is the hostname, which is # required. then - "--unix-socket ${lib.strings.removePrefix "unix://" cfg.guiAddress} http://.${path}" + "--unix-socket ${lib.strings.removePrefix "unix://" cfg.guiAddress} http://syncthing.local${path}" # no adjustments are needed if cfg.guiAddress is a network address else "${cfg.guiAddress}${path}";