1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00
home-manager/tests/modules/programs/gemini-cli/context.nix
Austin Horstman e121f3773f gemini-cli: context support multiple file generation
Support multiple context files since gemini supports configuring
multiple names as supported / looked for.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-10-12 18:44:04 -05:00

45 lines
1 KiB
Nix

{
programs.gemini-cli = {
enable = true;
context = {
# Test inline content
GEMINI = ''
# Global Context
You are a helpful AI assistant for software development.
## Coding Standards
- Follow consistent code style
- Write clear comments
- Test your changes
'';
# Test file path
AGENTS = ./context.md;
# Test another inline content
CONTEXT = ''
Additional context for specialized tasks.
'';
};
settings = {
context.fileName = [
"AGENTS.md"
"CONTEXT.md"
"GEMINI.md"
];
};
};
nmt.script = ''
assertFileExists home-files/.gemini/GEMINI.md
assertFileContent home-files/.gemini/GEMINI.md \
${./context-inline.md}
assertFileExists home-files/.gemini/AGENTS.md
assertFileContent home-files/.gemini/AGENTS.md \
${./context.md}
assertFileExists home-files/.gemini/CONTEXT.md
assertFileContent home-files/.gemini/CONTEXT.md \
${./context-additional.md}
'';
}