fix zsh shell for pi
Some checks are pending
quality / changes (push) Waiting to run
quality / Flake Check (push) Blocked by required conditions
quality / Nix Format Check (push) Blocked by required conditions
quality / Deploy netty (push) Blocked by required conditions

This commit is contained in:
Harivansh Rathi 2026-04-03 03:56:15 +00:00 committed by Hari
parent a49e93847d
commit dd787bfdbe

View file

@ -7,11 +7,11 @@ let
piAgentEnvFile = "/var/lib/pi-agent/pi-agent.env";
piBin = "/home/${username}/.local/share/npm/bin/pi";
# Start pi inside a login shell so it inherits the full user environment
# (PATH, XDG dirs, etc). dtach provides the PTY that pi's TUI needs.
# Start pi inside an interactive login shell so it inherits the full user
# environment (PATH, XDG dirs, etc). dtach provides the PTY that pi needs.
piAgentStart = pkgs.writeShellScript "start-pi-agent" ''
exec ${pkgs.dtach}/bin/dtach -N /run/pi-agent/pi-agent.sock \
/bin/sh -lc 'exec ${piBin} --chat-bridge'
/run/current-system/sw/bin/zsh -lic 'exec ${piBin} --chat-bridge'
'';
in
{