{inputs, ...}: { # This one brings our custom packages from the 'pkgs' directory additions = final: prev: (import ../pkgs { pkgs = final; atrocore-docker = inputs.atrocore-docker; }) // { zugferd-service = inputs.zugferd-service.packages.${prev.stdenv.hostPlatform.system}.default; }; # This one contains whatever you want to overlay # You can change versions, add patches, set compilation flags, anything really. # https://nixos.wiki/wiki/Overlays modifications = final: prev: { # n8n = import ./mods/n8n.nix {inherit prev;}; # snipe-it = import ./mods/snipe-it.nix {inherit prev;}; vivaldi = prev.vivaldi.override { commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland"; }; # m3ta-home's microsoft-graph-mcp-server.nix is written against # nixos-unstable, where python3Packages.mcp is 2.x and the 1.x line lives # on as `mcp_1`. nixos-26.05 has no `mcp_1` because its `mcp` still IS # 1.x, so alias it. Self-disables once nixpkgs ships a real `mcp_1`. pythonPackagesExtensions = prev.pythonPackagesExtensions ++ [ (_pyFinal: pyPrev: if pyPrev ? mcp_1 then {} else {mcp_1 = pyPrev.mcp;}) ]; # example = prev.example.overrideAttrs (oldAttrs: rec { # ... # }); }; stable-packages = final: _prev: { stable = import inputs.nixpkgs { system = final.stdenv.hostPlatform.system; config.allowUnfree = true; }; }; unstable-packages = final: _prev: { unstable = import inputs.nixpkgs-unstable { system = final.stdenv.hostPlatform.system; config.allowUnfree = true; }; }; # Flatten llm-agents packages into top-level pkgs namespace. # Keep plain derivations only. llm-agents exports `buildNpmPackage` as an # emptyDirectory derivation ("buildNpmPackage-guard") carrying a __functor # that forwards to its OWN nixpkgs pin's builder. Flattening it would shadow # nixpkgs' pkgs.buildNpmPackage and break unrelated packages — e.g. # vaultwarden-webvault (npmDepsFetcherVersion = 3) failed with # "fetchNpmDeps: fetcher version must be one of: 1, 2." because llm-agents' # pinned fetchNpmDeps only allows 1 and 2. Real packages never have a # __functor, so this filter drops such traps generically. # # The same filtered set is also exposed under `pkgs.llm-agents` so m3ta-home # modules written against numtide's `overlays.shared-nixpkgs` namespace # (profiles/sets/coding/agents/*, modules/nixos/t3code.nix) and # m3ta-home's t3code-agent-identity overlay (which extends # `prev.llm-agents`) work here unchanged. Both views point at the SAME # derivations (numtide's own nixpkgs pin, served by cache.numtide.com). mkLlmAgentsOverlay = system: _final: _prev: let packages = inputs.nixpkgs.lib.filterAttrs ( _: v: inputs.nixpkgs.lib.isDerivation v && !v ? __functor ) (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;}; }; }