- 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>
21 lines
916 B
Nix
21 lines
916 B
Nix
# Claude Code via home-manager `programs.claude-code`.
|
|
#
|
|
# enableMcpIntegration hands the shared programs.mcp catalogue (mcp.nix) to
|
|
# Claude Code the same way opencode.nix does for OpenCode: home-manager
|
|
# generates a plugin carrying .mcp.json and registers it (as a personal plugin
|
|
# under ~/.claude/skills/claude-code-home-manager on home-manager master, via a
|
|
# `--plugin-dir` wrapper on release-26.05). Nothing in ~/.claude is turned
|
|
# into a store symlink: settings.json (ai-memory hooks, plugins, theme) and
|
|
# ~/.claude.json (logins) stay writable for Claude Code itself.
|
|
#
|
|
# Do NOT add llm-agents.claude-code to home.packages next to this module;
|
|
# programs.claude-code installs its (possibly wrapped) package and a second
|
|
# `claude` would collide in the profile.
|
|
{pkgs, ...}: {
|
|
programs.claude-code = {
|
|
enable = true;
|
|
package = pkgs.llm-agents.claude-code;
|
|
enableMcpIntegration = true;
|
|
};
|
|
}
|