feat(claude): deploy OMC agents and CLAUDE.md config via nix

Add agents directory from oh-my-claudecode flake input, include the
upstream OMC CLAUDE.md configuration block via builtins.readFile, and
add statusLine/env/teammateMode to the declarative settings.json.
This commit is contained in:
2026-04-21 16:28:47 -04:00
parent c348c97ea0
commit 977c15a57f
+16 -1
View File
@@ -221,9 +221,16 @@
recursive = true; recursive = true;
}; };
# Claude Code agents (managed declaratively via flake inputs)
home.file.".claude/agents" = {
source = "${oh-my-claudecode}/agents";
recursive = true;
};
# Claude Code configuration # Claude Code configuration
home.file.".claude/CLAUDE.md" = { home.file.".claude/CLAUDE.md" = {
text = '' text = builtins.readFile "${oh-my-claudecode}/CLAUDE.md" + ''
## Commit Behavior ## Commit Behavior
After completing each logical unit of work, use the /commit skill to stage After completing each logical unit of work, use the /commit skill to stage
@@ -276,6 +283,14 @@
}; };
alwaysThinkingEnabled = true; alwaysThinkingEnabled = true;
includeCoAuthoredBy = false; includeCoAuthoredBy = false;
statusLine = {
type = "command";
command = "node \${CLAUDE_CONFIG_DIR:-$HOME/.claude}/hud/omc-hud.mjs";
};
env = {
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS = "1";
};
teammateMode = "tmux";
}; };
force = true; force = true;
}; };