From b16bb9efa7615a169589db80db444a88394bb242 Mon Sep 17 00:00:00 2001 From: m3ta-chiron Date: Sun, 15 Nov 2026 12:48:18 +0100 Subject: [PATCH] fix: drop codex from t3code wrapper to avoid Rust build - Filter codex out of providerPackages in the llm-agents t3code and t3code-desktop wrappers (new overlay t3code-without-codex) - Apply the overlay after mkLlmAgentsOverlay and before t3code-agent-identity - Only the cheap wrapper is rebuilt; t3code-unwrapped still comes from the numtide cache --- hosts/common/default.nix | 2 ++ overlays/default.nix | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/hosts/common/default.nix b/hosts/common/default.nix index bd88bbc..e629618 100644 --- a/hosts/common/default.nix +++ b/hosts/common/default.nix @@ -37,6 +37,8 @@ inputs.m3ta-nixpkgs.overlays.default (outputs.lib.mkLlmAgentsOverlay system) + # codex aus dem t3code-Wrapper-PATH entfernen (sonst Rust-Build). + outputs.overlays.t3code-without-codex # Wraps pkgs.llm-agents.t3code* with the agents' m3ta-chiron identity # (same as AZ-NIX-CLIENTS). Must come AFTER mkLlmAgentsOverlay. inputs.m3ta-home.overlays.t3code-agent-identity diff --git a/overlays/default.nix b/overlays/default.nix index 98ada9e..b69b0c2 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -71,4 +71,22 @@ (inputs.llm-agents.packages.${system} or {}); in packages // {llm-agents = packages;}; + + # numtide's t3code-Wrapper legt alle Agent-CLIs in den PATH (codex, + # claude-code, cursor-agent, grok, opencode). codex nutzen wir nicht, es ist + # aber Rust und wird gebaut, sobald es nicht (noch nicht) im numtide-Cache + # liegt. Deshalb hier rausfiltern. Muss NACH mkLlmAgentsOverlay und VOR + # m3ta-home's t3code-agent-identity stehen. Neu gebaut wird dadurch nur der + # billige Wrapper; t3code-unwrapped kommt weiter aus dem Cache. + t3code-without-codex = _final: prev: let + t3code = prev.llm-agents.t3code.override { + providerPackages = + builtins.filter (p: (p.pname or "") != "codex") + prev.llm-agents.t3code.providerPackages; + }; + t3code-desktop = prev.llm-agents.t3code-desktop.override {inherit t3code;}; + in { + inherit t3code t3code-desktop; + llm-agents = prev.llm-agents // {inherit t3code t3code-desktop;}; + }; }