From ffd85dc7f5b1193f14498e5bb4ee4151ed0ef576 Mon Sep 17 00:00:00 2001 From: oqyude Date: Thu, 15 Oct 2026 15:00:12 +0300 Subject: [PATCH] fix(home): add pkgs.bun to rydiwo home packages (herdr-web-ui runtime) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit На сапфире pkgs.bun приходит через импорт ./modules/opencode.nix (opencode.nix:271,339). На rydiwo opencode.nix не подключали — bun в PATH нет, поэтому herdr-web-ui plugin при первой попытке стартовать на rydiwo скачивает generic-linux bun в ~/.local/share/herdr-web-ui/install./runtime/bin/bun, и тот спотыкается о динамический линкер NixOS: «Could not start dynamically linked executable: ... NixOS cannot run dynamically linked executables intended for generic linux environments out of the box.» Один-в-один одна. С pkgs.bun в PATH plugin находит системный /nix/store/...-bun-*/bin/bun и не пытается скачивать свой. --- home/secondary.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/home/secondary.nix b/home/secondary.nix index 52dcd63..5082772 100644 --- a/home/secondary.nix +++ b/home/secondary.nix @@ -56,6 +56,15 @@ in name = "Qogir"; package = pkgs.qogir-icon-theme; }; + # pkgs.bun нужен для herdr-web-ui plugin (`herdr plugin install devswha/herdr-web-ui`): + # plugin проверяет PATH и, если bun нет, скачивает generic-linux bun в + # ~/.local/share/herdr-web-ui/install./runtime/bin/bun — а тот динамически + # слинкован и не запускается на NixOS («NixOS cannot run dynamically linked + # executables intended for generic linux environments out of the box»). + # На sapphira bun приходит через импорт ./modules/opencode.nix (см. opencode.nix:271); + # на rydiwo этот модуль не подключали — добавляем bun сюда, чтобы plugin + # использовал системный /nix/store/...-bun-*/bin/bun вместо скачивания. + packages = with pkgs; [ bun ]; }; home.activation = { yaziSync = ''