heather: expose only pi in user PATH

This commit is contained in:
mikl 2026-08-03 09:09:29 +03:00
parent 917b28ec4b
commit d015be0c4f

View file

@ -7,11 +7,19 @@
{ {
home.stateVersion = "25.11"; home.stateVersion = "25.11";
# npm-installed user CLIs, including pi (not pi-web). # Expose pi only; do not add the whole npm global bin (which also contains pi-web).
home.sessionPath = [ home.sessionPath = [
"${config.home.homeDirectory}/.npm-global/bin" "${config.home.homeDirectory}/.local/bin"
]; ];
home.file.".local/bin/pi" = {
executable = true;
text = ''
#!/bin/sh
exec "$HOME/.npm-global/bin/pi" "$@"
'';
};
# --- Пакеты: минимальный админский набор --- # --- Пакеты: минимальный админский набор ---
home.packages = with pkgs; [ home.packages = with pkgs; [
# Навигация/поиск # Навигация/поиск