feat(opencode): pin top-level opencode to v2 from llm-agents

- new ai-agents overlay (applied after m3ta-nixpkgs, which re-exports
  opencode-desktop from its own older v1 flake input):
  * opencode -> llm-agents.opencode2 (2.0.16), binary renamed back to
    'opencode' so keybinds/wrappers keep working
  * opencode-desktop -> llm-agents.opencode-desktop (1.18.32, newest
    existing desktop release; no v2 desktop app upstream)
- bump llm-agents lock to 8bec0ce1 (opencode2 2.0.16)
- m3-hermes keeps llm-agents.opencode (v1) for now
This commit is contained in:
m3ta-chiron committed 2026-09-24 12:58:42 +02:00
1 parent 8f5f3754e5
commit 839697e21c
4 files changed
+343 -208

No files matched your search

+14 -1
View File
@@ -40,6 +40,10 @@
inputs.m3ta-nixpkgs.overlays.default
# inputs.m3ta-nixpkgs.overlays.modifications
# Top-level pins for opencode/opencode-desktop from llm-agents. Must
# come AFTER m3ta-nixpkgs' overlay, which re-exports opencode-desktop
# from its own (older, v1) `opencode` flake input.
outputs.overlays.ai-agents
# llm-agent packages under the `pkgs.llm-agents.*` namespace, built
# against this system's nixpkgs (needed for qmd.override cudaSupport
# with allowUnfree). Do NOT flatten to top-level attrs — see
@@ -64,7 +68,7 @@
nix = {
settings = {
experimental-features = "nix-command flakes";
experimental-features = ["nix-command flakes"];
cores = 2;
max-jobs = 8;
trusted-users = [
@@ -92,6 +96,15 @@
parent=""
[[ -r /proc/$PPID/comm ]] && IFS= read -r parent < /proc/$PPID/comm
if [[ "$parent" != "nu" && "$parent" != "bash" ]]; then
# First TTY login -> Hyprland (login-manager replacement).
# Only for non-root users with no graphical session running,
# and only on hosts where start-hyprland exists (desktops).
# Servers/laptops without Hyprland fall through to nushell.
if [[ "$(tty)" == "/dev/tty1" && $EUID -ne 0 \
&& -z "''${WAYLAND_DISPLAY:-}" && -z "''${DISPLAY:-}" ]] \
&& command -v start-hyprland >/dev/null 2>&1; then
exec start-hyprland
fi
exec ${pkgs.nushell}/bin/nu --login
fi
unset parent