From ad1032d35f04451cca9bb31ba44ae27a1a619c68 Mon Sep 17 00:00:00 2001 From: Ed Langley Date: Sat, 26 Sep 2026 00:56:25 -0700 Subject: [PATCH] fix: probe Nix store with supported command\n\nUse nix store ping instead of the nonexistent nix-store --ping operation.\n\nPosted-by: ChatGPT (GPT-5.6 Sol) --- scripts/agent-bootstrap.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/agent-bootstrap.sh b/scripts/agent-bootstrap.sh index e765b123..bc3d957c 100755 --- a/scripts/agent-bootstrap.sh +++ b/scripts/agent-bootstrap.sh @@ -43,7 +43,7 @@ ensure_nix_daemon() { # Single-user Nix does not need a daemon; multi-user/cloud installs do. # If the store already answers, leave the environment alone. - if command -v nix-store >/dev/null 2>&1 && nix-store --ping >/dev/null 2>&1; then + if nix --extra-experimental-features 'nix-command' store ping >/dev/null 2>&1; then return 0 fi @@ -58,7 +58,7 @@ ensure_nix_daemon() { # The daemon is started asynchronously; wait briefly for its socket before # invoking the seed/build steps that depend on it. for _ in {1..50}; do - if command -v nix-store >/dev/null 2>&1 && nix-store --ping >/dev/null 2>&1; then + if nix --extra-experimental-features 'nix-command' store ping --store daemon >/dev/null 2>&1; then return 0 fi sleep 0.1