Files
home-manager/tests/modules/programs/github-copilot-cli/xdg-config-dir.nix
Austin Horstman feda41500e github-copilot-cli: add context, agents, and skills
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.
2026-05-01 12:06:19 -05:00

26 lines
923 B
Nix

{
home.preferXdgDirectories = true;
programs.github-copilot-cli = {
enable = true;
context = ./context.md;
settings = {
model = "claude-sonnet-4-5";
theme = "dark";
trusted_folders = [ "/home/user/projects" ];
};
};
nmt.script = ''
assertFileExists home-files/.config/copilot/config.json
assertFileContent home-files/.config/copilot/config.json ${./expected-config.json}
assertFileExists home-files/.config/copilot/copilot-instructions.md
assertLinkExists home-files/.config/copilot/copilot-instructions.md
assertFileContent home-files/.config/copilot/copilot-instructions.md \
${./context.md}
assertPathNotExists home-files/.copilot/config.json
assertPathNotExists home-files/.copilot/copilot-instructions.md
assertFileContains home-path/etc/profile.d/hm-session-vars.sh \
'export COPILOT_HOME="/home/hm-user/.config/copilot"'
'';
}