From dd787bfdbe4ae6da00aee09abe1db361b8ad766a Mon Sep 17 00:00:00 2001 From: Harivansh Rathi Date: Fri, 3 Apr 2026 03:56:15 +0000 Subject: [PATCH] fix zsh shell for pi --- hosts/netty/pi-agent.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hosts/netty/pi-agent.nix b/hosts/netty/pi-agent.nix index bb0961c..3873cd6 100644 --- a/hosts/netty/pi-agent.nix +++ b/hosts/netty/pi-agent.nix @@ -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 {