mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:46 +01:00
myNurPkgs evaluated a second nixpkgs just for four packages. Apply the NUR repo's own overlay instead, so they come from the host's pkgs. Darwin's pkgs now gets nixpkgsConfig too: it set nixpkgs.pkgs, which ignores nixpkgs.config, so only myNurPkgs carried the npm mirror there. Assisted-by: Claude Code (claude-opus-5-5)
35 lines
1003 B
Nix
35 lines
1003 B
Nix
{
|
|
pkgs,
|
|
llm-agents,
|
|
dsh-nu,
|
|
...
|
|
}:
|
|
let
|
|
agentPackages = llm-agents.packages.${pkgs.stdenv.hostPlatform.system};
|
|
# dsh-nu's flake builds the plugin from its own checkout; this repository
|
|
# supplies the dsh installation it plugs into.
|
|
dshNu = dsh-nu.lib.mkDshNuPackage {
|
|
inherit pkgs;
|
|
inherit (pkgs) dsh;
|
|
};
|
|
in
|
|
{
|
|
home.packages = [
|
|
# Agents
|
|
agentPackages.codex
|
|
agentPackages.opencode2
|
|
agentPackages.pi
|
|
# dsh from nur-packages: llm-agents.nix's dsh cannot boot on nixpkgs node
|
|
# (node-addon-require-builtin probe), this one shims it. The Nushell-only
|
|
# plugin rides in through the package's withPlugins wrapper.
|
|
(pkgs.dsh.withPlugins [ dshNu ])
|
|
|
|
# Docs lookup CLI behind the find-docs skill (agents/skills/find-docs). The skill's flags are
|
|
# written against this package, not against upstream's npx instructions.
|
|
pkgs.ctx7
|
|
|
|
# MCP servers, configured project-scoped in opencode.jsonc / .codex/config.toml
|
|
pkgs.mcp-grafana
|
|
];
|
|
}
|