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.
45 lines
1.4 KiB
Nix
45 lines
1.4 KiB
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
programs.antigravity-cli = {
|
|
enable = true;
|
|
package = pkgs.writeShellScriptBin "antigravity-cli" "";
|
|
skills = {
|
|
xlsx = ./skills/xlsx/SKILL.md;
|
|
data-analysis = ./skills/data-analysis;
|
|
pdf-processing = ''
|
|
---
|
|
name: pdf-processing
|
|
description: Extract text and tables from PDF files, fill forms, merge documents. Use when working with PDF files or when the user mentions PDFs, forms, or document extraction.
|
|
---
|
|
|
|
# PDF Processing
|
|
|
|
## Quick start
|
|
|
|
Use pdfplumber to extract text from PDFs:
|
|
|
|
```python
|
|
import pdfplumber
|
|
|
|
with pdfplumber.open("document.pdf") as pdf:
|
|
text = pdf.pages[0].extract_text()
|
|
```
|
|
'';
|
|
};
|
|
};
|
|
nmt.script = ''
|
|
assertFileExists home-files/.gemini/antigravity-cli/skills/xlsx/SKILL.md
|
|
assertFileContent home-files/.gemini/antigravity-cli/skills/xlsx/SKILL.md \
|
|
${./skills/xlsx/SKILL.md}
|
|
|
|
assertFileExists home-files/.gemini/antigravity-cli/skills/data-analysis/SKILL.md
|
|
assertFileContent home-files/.gemini/antigravity-cli/skills/data-analysis/SKILL.md \
|
|
${./skills/data-analysis/SKILL.md}
|
|
|
|
assertFileExists home-files/.gemini/antigravity-cli/skills/pdf-processing/SKILL.md
|
|
assertFileContent home-files/.gemini/antigravity-cli/skills/pdf-processing/SKILL.md \
|
|
${./skills/pdf-processing/SKILL.md}
|
|
'';
|
|
}
|