feat: add gemini cli

This commit is contained in:
lightly-toasted 2025-08-23 22:50:00 +09:00
parent 4a948cc348
commit 09ec08dcb2
3 changed files with 34 additions and 2 deletions

View file

@ -0,0 +1,30 @@
{ pkgs, config, ... }:
{
sops.secrets.github_token = { };
home.packages = with pkgs; [
gemini-cli
];
home.file.".gemini/settings.json".text = ''
{
"selectedAuthType": "oauth-personal",
"mcpServers": {
"context7": {
"httpUrl": "https://mcp.context7.com/mcp"
},
"github": {
"command": "npx",
"args": [
"@modelcontextprotocol/server-github"
],
"timeout": 10000,
"trust": false
}
},
"preferredEditor": "neovim"
}
'';
home.file.".gemini/.env".text = ''
GITHUB_TOKEN=$(cat ${config.sops.secrets.github_token.path})
'';
}