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:
@@ -221,9 +221,16 @@
|
||||
recursive = true;
|
||||
};
|
||||
|
||||
# Claude Code agents (managed declaratively via flake inputs)
|
||||
home.file.".claude/agents" = {
|
||||
source = "${oh-my-claudecode}/agents";
|
||||
recursive = true;
|
||||
};
|
||||
|
||||
# Claude Code configuration
|
||||
home.file.".claude/CLAUDE.md" = {
|
||||
text = ''
|
||||
text = builtins.readFile "${oh-my-claudecode}/CLAUDE.md" + ''
|
||||
|
||||
## Commit Behavior
|
||||
|
||||
After completing each logical unit of work, use the /commit skill to stage
|
||||
@@ -276,6 +283,14 @@
|
||||
};
|
||||
alwaysThinkingEnabled = true;
|
||||
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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user