revert(opencode): stay on v1 line (1.18.32) due to v2 config issues

opencode2 had config compatibility problems with m3ta-home's
programs.opencode settings. Pin top-level opencode to llm-agents'
v1 package (1.18.32) instead — still newer than nixpkgs' 1.18.30.
opencode-desktop pin (1.18.32 from llm-agents) unchanged.
This commit is contained in:
m3ta-chiron committed 2026-09-24 13:34:54 +02:00
1 parent 839697e21c
commit 4a5c431bff
1 file changed
+4 -16
+4 -16
View File
@@ -31,22 +31,10 @@
# (github:anomalyco/opencode, v1 line), which would clobber a pin placed # (github:anomalyco/opencode, v1 line), which would clobber a pin placed
# in `modifications`. # in `modifications`.
ai-agents = final: _prev: { ai-agents = final: _prev: {
# OpenCode TUI: nixpkgs' top-level `opencode` still tracks the v1 line # OpenCode TUI: stay on the v1 line (1.18.x) — v2 (opencode2) had config
# (1.18.x) and llm-agents' shared-nixpkgs overlay namespaces everything # compatibility problems with m3ta-home's settings. llm-agents tracks
# under `pkgs.llm-agents.*` by design. Expose the v2 CLI (npm # the newest v1 release (1.18.32), ahead of nixpkgs' 1.18.30.
# @opencode/cli latest) under the canonical top-level attribute so opencode = final.llm-agents.opencode;
# home-manager's programs.opencode and m3ta-home pick it up. Upstream
# installs the binary as `opencode2` (so v1/v2 can coexist in the
# llm-agents package set) — rename it back to `opencode` to keep
# keybinds, aliases, and wrappers working.
opencode = final.symlinkJoin {
name = "opencode-${final.llm-agents.opencode2.version}";
paths = [final.llm-agents.opencode2];
postBuild = ''
mv $out/bin/opencode2 $out/bin/opencode
'';
meta = (final.llm-agents.opencode2.meta or {}) // {mainProgram = "opencode";};
};
# OpenCode Desktop: no v2 desktop app exists upstream (anomalyco/opencode # OpenCode Desktop: no v2 desktop app exists upstream (anomalyco/opencode
# ends at v1.18.32); track the newest v1 release from llm-agents instead # ends at v1.18.32); track the newest v1 release from llm-agents instead