mirror of
https://github.com/nix-community/home-manager.git
synced 2026-11-04 11:50:08 +00:00
Add support for managing Copilot CLI global instructions via programs.github-copilot-cli.context, written to copilot-instructions.md under COPILOT_HOME. Also manage custom agents and skills from inline definitions, file paths, and directories, with focused tests and a news entry covering the new options.
38 lines
1.7 KiB
Nix
38 lines
1.7 KiB
Nix
{
|
|
programs.github-copilot-cli = {
|
|
enable = true;
|
|
agents = ./agents;
|
|
skills = ./skills;
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.copilot/agents/code-reviewer.agent.md
|
|
assertLinkExists home-files/.copilot/agents/code-reviewer.agent.md
|
|
assertFileContent home-files/.copilot/agents/code-reviewer.agent.md \
|
|
${./agents/code-reviewer.agent.md}
|
|
|
|
assertFileExists home-files/.copilot/agents/documentation.agent.md
|
|
assertLinkExists home-files/.copilot/agents/documentation.agent.md
|
|
assertFileContent home-files/.copilot/agents/documentation.agent.md \
|
|
${./agents/documentation.agent.md}
|
|
|
|
assertFileExists home-files/.copilot/skills/data-analysis/SKILL.md
|
|
assertFileExists home-files/.copilot/skills/data-analysis/notes.txt
|
|
assertLinkExists home-files/.copilot/skills/data-analysis/SKILL.md
|
|
assertLinkExists home-files/.copilot/skills/data-analysis/notes.txt
|
|
assertFileContent home-files/.copilot/skills/data-analysis/SKILL.md \
|
|
${./skills/data-analysis/SKILL.md}
|
|
assertFileContent home-files/.copilot/skills/data-analysis/notes.txt \
|
|
${./skills/data-analysis/notes.txt}
|
|
|
|
assertFileExists home-files/.copilot/skills/release-notes/SKILL.md
|
|
assertFileExists home-files/.copilot/skills/release-notes/checklist.md
|
|
assertLinkExists home-files/.copilot/skills/release-notes/SKILL.md
|
|
assertLinkExists home-files/.copilot/skills/release-notes/checklist.md
|
|
assertFileContent home-files/.copilot/skills/release-notes/SKILL.md \
|
|
${./skills/release-notes/SKILL.md}
|
|
assertFileContent home-files/.copilot/skills/release-notes/checklist.md \
|
|
${./skills/release-notes/checklist.md}
|
|
'';
|
|
}
|