1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-13 04:21:08 +01:00

gemini-cli: init module

This commit is contained in:
Mohammad Rafiq 2025-08-11 23:58:20 +08:00 committed by Austin Horstman
parent 461706d28b
commit 27a26be51f
6 changed files with 162 additions and 0 deletions

View file

@ -0,0 +1,2 @@
description = "Adds a new entry to the project's CHANGELOG.md file."
prompt = "Your task is to parse the `<version>`, `<change_type>`, and `<message>` from their input and use the `write_file` tool to correctly update the `CHANGELOG.md` file.\n"

View file

@ -0,0 +1,3 @@
{
gemini-cli-settings = ./settings.nix;
}

View file

@ -0,0 +1,2 @@
description = "Generates a fix for a given GitHub issue."
prompt = "Please analyze the staged git changes and provide a code fix for the issue described here: {{args}}."

View file

@ -0,0 +1,6 @@
{
"autoAccept": true,
"preferredEditor": "nvim",
"theme": "Default",
"vimMode": true
}

View file

@ -0,0 +1,32 @@
{
programs.gemini-cli = {
enable = true;
settings = {
theme = "Default";
vimMode = true;
preferredEditor = "nvim";
autoAccept = true;
};
commands = {
changelog = {
prompt = ''
Your task is to parse the `<version>`, `<change_type>`, and `<message>` from their input and use the `write_file` tool to correctly update the `CHANGELOG.md` file.
'';
description = "Adds a new entry to the project's CHANGELOG.md file.";
};
"git/fix" = {
prompt = "Please analyze the staged git changes and provide a code fix for the issue described here: {{args}}.";
description = "Generates a fix for a given GitHub issue.";
};
};
};
nmt.script = ''
assertFileExists home-files/.gemini/settings.json
assertFileContent home-files/.gemini/settings.json \
${./settings.json}
assertFileContent home-files/.gemini/commands/changelog.toml \
${./changelog.toml}
assertFileContent home-files/.gemini/commands/git/fix.toml \
${./fix.toml}
'';
}