feat(prm-1): align agent userspace of sascha.koenig with AZ-LT-NIX
- Import the m3ta-home agent modules (mcp, claude-code, opencode,
ai-memory, claude-skills) in hosts/AZ-PRM-1/home.nix instead of the
hand-rolled claude-code/opencode packages; Claude Code and OpenCode get
the shared MCP catalogue, ai-memory hooks/MCP/skills, LiteLLM/Z.AI
providers and the m3ta-chiron git identity
- Expose the flattened llm-agents packages additionally as pkgs.llm-agents
so m3ta-home modules and the t3code-agent-identity overlay work here
- Apply m3ta-home's t3code-agent-identity overlay (T3 agents commit as
m3ta-chiron), t3code service uses the wrapped module default package
- agent-lib-sync timer calls claude-skills-sync from the user profile
instead of duplicating the link logic
- Secrets for AZ-PRM-1 (same values as AZ-LT-NIX): ai-memory-token,
agent-gitea-token-{m3ta,az}; exa-key/ref-key now owned by sascha.koenig
- flake.lock: m3ta-home -> f4ab2ab (Claude MCP integration, PR #9)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
+44
-5
@@ -1,15 +1,40 @@
|
||||
# Home-Manager-Overrides fuer sascha.koenig auf AZ-PRM-1.
|
||||
# Wird automatisch von hosts/common/users/sascha.koenig.nix eingebunden.
|
||||
#
|
||||
# Ziel: derselbe Agent-Userspace wie auf AZ-LT-NIX (AZ-NIX-CLIENTS), ohne das
|
||||
# komplette m3ta-home-Set "coding" (das zieht Desktop-Pakete wie
|
||||
# claude-desktop und t3code-desktop mit). Deshalb werden nur die Agent-Module
|
||||
# aus m3ta-home einzeln importiert:
|
||||
# mcp.nix gemeinsamer MCP-Katalog (programs.mcp)
|
||||
# claude-code.nix Claude Code + MCPs ueber programs.claude-code
|
||||
# opencode.nix OpenCode 2 + MCPs, LiteLLM-/Z.AI-Provider
|
||||
# ai-memory.nix ai-memory Hooks, MCP, Skills, Token
|
||||
# claude-skills.nix ~/.agents/skills -> ~/.claude/skills spiegeln
|
||||
#
|
||||
# T3 Code (hosts/AZ-PRM-1/services/t3code.nix) startet die Harnesses aus
|
||||
# /etc/profiles/per-user/<user>, deshalb liegen sie hier im User-Profil.
|
||||
{pkgs, ...}: {
|
||||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
agents = "${inputs.m3ta-home}/profiles/sets/coding/agents";
|
||||
in {
|
||||
imports = [
|
||||
"${agents}/mcp.nix"
|
||||
"${agents}/claude-code.nix"
|
||||
"${agents}/opencode.nix"
|
||||
"${agents}/ai-memory.nix"
|
||||
"${agents}/claude-skills.nix"
|
||||
];
|
||||
|
||||
# claude-code kommt ueber programs.claude-code, opencode ueber
|
||||
# programs.opencode (beide aus den Modulen oben) - hier nicht doppelt
|
||||
# installieren, sonst kollidieren die Binaries im Profil.
|
||||
home.packages = with pkgs; [
|
||||
agent-lib
|
||||
claude-code
|
||||
opencode
|
||||
# Gleiches Paket wie der Dienst: fuer `t3 pair` & Co. gegen ~/.t3.
|
||||
t3code
|
||||
# Gleiches (identity-gewrapptes) Paket wie der Dienst: fuer `t3 pair` & Co.
|
||||
llm-agents.t3code
|
||||
];
|
||||
|
||||
# Gleiche Quelle wie der Timer agent-lib-sync, damit ein manuelles
|
||||
@@ -18,4 +43,18 @@
|
||||
repo_url = "https://code.m3ta.dev/m3tam3re/agent-prod.git";
|
||||
ref = "master";
|
||||
};
|
||||
|
||||
# Shared agent memory (memory.m3ta.dev), Token: age.secrets.ai-memory-token.
|
||||
# Alles auf diesem Host ist Arbeit -> Workspace "az" wie auf AZ-LT-NIX.
|
||||
coding.aiMemory = {
|
||||
enable = true;
|
||||
workspace = "az";
|
||||
};
|
||||
|
||||
# Commits der Agenten laufen als m3ta-chiron (wie auf AZ-LT-NIX). Der
|
||||
# private Key ~/.ssh/m3ta-chiron wird nicht ueber Nix verteilt.
|
||||
coding.agents.gitIdentity = {
|
||||
enable = true;
|
||||
sshKey = "/home/sascha.koenig/.ssh/m3ta-chiron";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user