- Move programs.mcp.servers out of agents.nix into mcp.nix so hosts that do not load the whole coding set (T3 Code servers) can import it alone - Add claude-code.nix: programs.claude-code with enableMcpIntegration, replacing the bare llm-agents.claude-code package (would collide on bin/claude). home-manager delivers the catalogue as a generated plugin, ~/.claude/settings.json and ~/.claude.json stay writable - ai-memory: register the session-aware Claude bridge via programs.claude-code.mcpServers instead of `ai-memory install-mcp`; activation only removes the stale user-scope entry now - Adjust ai-memory.test.sh accordingly Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
58 lines
1.6 KiB
Nix
58 lines
1.6 KiB
Nix
# AI agent system — OpenCode, Claude Code, ai-memory and MCP server configuration.
|
|
# Relies on coding.agents options provided by home/common/default.nix
|
|
# (m3taHomeInputs.m3ta-nixpkgs.homeManagerModules.default).
|
|
{
|
|
lib,
|
|
m3taHomeInputs,
|
|
pkgs,
|
|
videoDrivers ? [],
|
|
...
|
|
}: {
|
|
# Agent Git Identity configuration
|
|
# Note: Uses existing gitea SSH key (m3tam3re identity) for push auth
|
|
coding.agents.gitIdentity = {
|
|
enable = true;
|
|
name = "m3ta-chiron";
|
|
email = "m3ta-chiron@agentmail.to";
|
|
sshKey = lib.mkDefault "/home/m3tam3re/.ssh/gitea";
|
|
};
|
|
|
|
imports = [
|
|
# ai-memory client, skill mirror, shared MCP catalogue, OpenCode and
|
|
# Claude Code config
|
|
./ai-memory.nix
|
|
./claude-skills.nix
|
|
./mcp.nix
|
|
./opencode.nix
|
|
./claude-code.nix
|
|
];
|
|
|
|
# NOTE: llm-agent packages are consumed via the `llm-agents` namespace
|
|
# (pkgs.llm-agents.*), provided by numtide/llm-agents.nix's
|
|
# `overlays.shared-nixpkgs`. The consumer's nixos-config MUST apply that
|
|
# overlay — namespaced refs fail loudly if it is missing, instead of
|
|
# silently falling back to (outdated) nixpkgs attributes.
|
|
home.packages = with pkgs; [
|
|
agenix-cli
|
|
agent-lib
|
|
llm-agents.agent-browser
|
|
llm-agents.beads
|
|
llm-agents.claude-desktop
|
|
crunch
|
|
docker-sbx
|
|
llm-agents.herdr
|
|
(llm-agents.qmd.override {
|
|
vulkanSupport = videoDrivers == ["amdgpu"];
|
|
cudaSupport = videoDrivers == ["nvidia"];
|
|
})
|
|
llm-agents.officecli
|
|
llm-agents.opencode2-desktop
|
|
openshell
|
|
llm-agents.openspec
|
|
openwork
|
|
talk
|
|
llm-agents.t3code
|
|
llm-agents.t3code-desktop
|
|
];
|
|
}
|