mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 19:05:17 +00:00
fix zsh shell for pi
This commit is contained in:
parent
a49e93847d
commit
dd787bfdbe
1 changed files with 3 additions and 3 deletions
|
|
@ -7,11 +7,11 @@ let
|
||||||
piAgentEnvFile = "/var/lib/pi-agent/pi-agent.env";
|
piAgentEnvFile = "/var/lib/pi-agent/pi-agent.env";
|
||||||
piBin = "/home/${username}/.local/share/npm/bin/pi";
|
piBin = "/home/${username}/.local/share/npm/bin/pi";
|
||||||
|
|
||||||
# Start pi inside a login shell so it inherits the full user environment
|
# Start pi inside an interactive login shell so it inherits the full user
|
||||||
# (PATH, XDG dirs, etc). dtach provides the PTY that pi's TUI needs.
|
# environment (PATH, XDG dirs, etc). dtach provides the PTY that pi needs.
|
||||||
piAgentStart = pkgs.writeShellScript "start-pi-agent" ''
|
piAgentStart = pkgs.writeShellScript "start-pi-agent" ''
|
||||||
exec ${pkgs.dtach}/bin/dtach -N /run/pi-agent/pi-agent.sock \
|
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
|
in
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue