mirror of
https://github.com/nix-community/home-manager.git
synced 2026-11-02 02:38:53 +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.
26 lines
923 B
Nix
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"'
|
|
'';
|
|
}
|