mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-05 00:21:04 +01:00
51 lines
1.4 KiB
Nix
51 lines
1.4 KiB
Nix
{
|
|
programs.claude-code = {
|
|
enable = true;
|
|
commands = {
|
|
inline-command = ''
|
|
---
|
|
allowed-tools: Read
|
|
description: Inline command
|
|
---
|
|
This command is defined inline.
|
|
'';
|
|
path-command = ./test-command.md;
|
|
};
|
|
agents = {
|
|
inline-agent = ''
|
|
---
|
|
name: inline-agent
|
|
description: Inline agent
|
|
tools: Read
|
|
---
|
|
This agent is defined inline.
|
|
'';
|
|
path-agent = ./test-agent.md;
|
|
};
|
|
skills = {
|
|
inline-skill = ''
|
|
Use this skill when the user asks you to perform an inline operation.
|
|
|
|
## Instructions
|
|
This skill is defined inline.
|
|
'';
|
|
path-skill = ./test-skill.md;
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.claude/commands/inline-command.md
|
|
assertFileExists home-files/.claude/commands/path-command.md
|
|
assertFileExists home-files/.claude/agents/inline-agent.md
|
|
assertFileExists home-files/.claude/agents/path-agent.md
|
|
assertFileExists home-files/.claude/skills/inline-skill.md
|
|
assertFileExists home-files/.claude/skills/path-skill.md
|
|
|
|
assertFileContent home-files/.claude/commands/path-command.md \
|
|
${./test-command.md}
|
|
assertFileContent home-files/.claude/agents/path-agent.md \
|
|
${./test-agent.md}
|
|
assertFileContent home-files/.claude/skills/path-skill.md \
|
|
${./test-skill.md}
|
|
'';
|
|
}
|