From c21268fb9b78438ab082c1becf21d868cb2de24b Mon Sep 17 00:00:00 2001 From: mikl Date: Fri, 10 Jul 2026 23:20:02 +0300 Subject: [PATCH] fix: use homebrew node instead of nix read-only nodejs - nodejs from nixpkgs is read-only, breaks pi-coding-agent internal npm install - Use homebrew node (writable) for proper npm/pnpm global installs - Remove pi-node hardcoded path hack from PATH --- home/cli.nix | 2 +- home/default.nix | 4 ++-- hosts/poppy/apps.nix | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/home/cli.nix b/home/cli.nix index 12ca652..55bd085 100644 --- a/home/cli.nix +++ b/home/cli.nix @@ -20,7 +20,7 @@ micro # Node.js ecosystem - nodejs # runtime for pi-coding-agent and other JS tools + # nodejs # read-only в nix store не подходит для pi (npm install ломается) pnpm # fast node package manager # Secrets diff --git a/home/default.nix b/home/default.nix index 6a6fc02..810a87a 100644 --- a/home/default.nix +++ b/home/default.nix @@ -36,9 +36,9 @@ "${config.home.homeDirectory}/bin" "${config.home.homeDirectory}/.local/bin" - # npm/pnpm global — установи pi через: pnpm i -g @mariozechner/pi-coding-agent + # npm/pnpm global "${config.home.homeDirectory}/.npm-global/bin" - "${config.home.homeDirectory}/.local/share/pnpm" + "${config.home.homeDirectory}/.local/share/pnpm/bin" # opencode (если установлен) "${config.home.homeDirectory}/.opencode/bin" diff --git a/hosts/poppy/apps.nix b/hosts/poppy/apps.nix index 3cc0711..e3d7989 100644 --- a/hosts/poppy/apps.nix +++ b/hosts/poppy/apps.nix @@ -12,6 +12,7 @@ brews = [ "kew" "tea" # Forgejo/Gitea CLI + "node" # Node.js для pi-coding-agent (не из nix — read-only) ]; casks = [