diff --git a/overlays/default.nix b/overlays/default.nix index 94ae32f..733a4f3 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -31,22 +31,10 @@ # (github:anomalyco/opencode, v1 line), which would clobber a pin placed # in `modifications`. ai-agents = final: _prev: { - # OpenCode TUI: nixpkgs' top-level `opencode` still tracks the v1 line - # (1.18.x) and llm-agents' shared-nixpkgs overlay namespaces everything - # under `pkgs.llm-agents.*` by design. Expose the v2 CLI (npm - # @opencode/cli latest) under the canonical top-level attribute so - # 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 TUI: stay on the v1 line (1.18.x) — v2 (opencode2) had config + # compatibility problems with m3ta-home's settings. llm-agents tracks + # the newest v1 release (1.18.32), ahead of nixpkgs' 1.18.30. + opencode = final.llm-agents.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