programs.gemini-cli.context
An attribute set of context files to create in ~/.gemini/.
The attribute name becomes the filename with .md extension automatically added.
The value is either inline content or a path to a file.
Note: You can customize which context file names gemini-cli looks for by setting
settings.context.fileName. For example:
settings = {
context.fileName = ["AGENTS.md", "CONTEXT.md", "GEMINI.md"];
};
- Type
attribute set of (strings concatenated with "\n" or absolute path)- Default
{ }- Example
{ GEMINI = '' # Global Context You are a helpful AI assistant for software development. ## Coding Standards - Follow consistent code style - Write clear comments - Test your changes ''; AGENTS = ./path/to/agents.md; CONTEXT = '' Additional context instructions here. ''; }- Declared
- <home-manager/modules/programs/gemini-cli.nix>