From e2a7d85ac2ee98cfd6411ee67f272e6c0c3a8340 Mon Sep 17 00:00:00 2001 From: Harivansh Rathi Date: Fri, 3 Apr 2026 03:30:10 +0000 Subject: [PATCH] add npm to path for pi telegram to run --- hosts/netty/pi-agent.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hosts/netty/pi-agent.nix b/hosts/netty/pi-agent.nix index 86b96a2..c872991 100644 --- a/hosts/netty/pi-agent.nix +++ b/hosts/netty/pi-agent.nix @@ -20,6 +20,10 @@ let exit 1 fi + # RPC subprocesses spawned by pi-channels do spawn("pi", ...) and + # need the npm bin directory on PATH. + export PATH="/home/${username}/.local/share/npm/bin:$PATH" + exec ${pkgs.dtach}/bin/dtach -N /run/pi-agent/pi-agent.sock \ ${piBin} --chat-bridge '';