add npm to path for pi telegram to run

This commit is contained in:
Harivansh Rathi 2026-04-03 03:30:10 +00:00
parent 65eb2fed1a
commit e2a7d85ac2

View file

@ -20,6 +20,10 @@ let
exit 1 exit 1
fi 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 \ exec ${pkgs.dtach}/bin/dtach -N /run/pi-agent/pi-agent.sock \
${piBin} --chat-bridge ${piBin} --chat-bridge
''; '';