heather: expose only pi in user PATH
This commit is contained in:
parent
917b28ec4b
commit
d015be0c4f
1 changed files with 10 additions and 2 deletions
|
|
@ -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; [
|
||||||
# Навигация/поиск
|
# Навигация/поиск
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue