diff --git a/home/server.nix b/home/server.nix index ded3b30..4be827c 100644 --- a/home/server.nix +++ b/home/server.nix @@ -7,11 +7,19 @@ { 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 = [ - "${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; [ # Навигация/поиск