From f62101f754c36a74eb3235824808d61f0e8a022a Mon Sep 17 00:00:00 2001 From: "every.channel" Date: Tue, 17 Feb 2026 23:53:43 -0800 Subject: [PATCH] nixos: fix hdhr autodiscovery when host unset --- nix/modules/ec-node.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nix/modules/ec-node.nix b/nix/modules/ec-node.nix index 033a093..e519e82 100644 --- a/nix/modules/ec-node.nix +++ b/nix/modules/ec-node.nix @@ -200,9 +200,11 @@ in exit 2 fi - base="${lib.escapeShellArg fixedHost}" + # Note: don't wrap lib.escapeShellArg in double-quotes, otherwise empty strings + # become a literal two-quote token and break discovery. + base=${lib.escapeShellArg fixedHost} if [[ -z "$base" ]]; then - dev_id="${lib.escapeShellArg deviceId}" + dev_id=${lib.escapeShellArg deviceId} if [[ -z "$dev_id" ]]; then echo "ec-node: missing hdhomerun.host and hdhomerun.deviceId" >&2 exit 2