mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-02 19:49:18 +00:00
The skills folder deployment path has been updated to '~/.gemini/antigravity-cli/skills/' to align with the application's configuration path structure from docs. I think the other path is just a weird compatibility shim that app supports. strace shows it will search it, but it also checks the documented path.
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
programs.antigravity-cli = {
|
|
enable = true;
|
|
package = pkgs.writeShellScriptBin "gemini-cli" "";
|
|
settings.theme = "Default";
|
|
commands.review = {
|
|
prompt = "Review current changes.";
|
|
description = "Reviews current changes.";
|
|
};
|
|
skills.audit = ''
|
|
---
|
|
name: audit
|
|
description: Audit code changes.
|
|
---
|
|
|
|
Audit code changes.
|
|
'';
|
|
policies.commands.rule = [
|
|
{
|
|
toolName = "run_shell_command";
|
|
commandPrefix = "git ";
|
|
decision = "ask_user";
|
|
priority = 100;
|
|
}
|
|
];
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.gemini/settings.json
|
|
assertPathNotExists home-files/.gemini/antigravity-cli/settings.json
|
|
assertFileExists home-files/.gemini/commands/review.toml
|
|
assertFileExists home-files/.gemini/skills/audit/SKILL.md
|
|
assertFileExists home-files/.gemini/policies/commands.toml
|
|
assertPathNotExists home-files/.gemini/antigravity-cli/skills/review/SKILL.md
|
|
assertPathNotExists home-files/.gemini/config/mcp_config.json
|
|
'';
|
|
}
|