mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-10-04 15:45:39 +00:00
feat: add gemini cli
This commit is contained in:
parent
4a948cc348
commit
09ec08dcb2
3 changed files with 34 additions and 2 deletions
|
@ -26,6 +26,7 @@
|
|||
./modules/obsidian.nix
|
||||
./modules/xdg.nix
|
||||
./modules/sops.nix
|
||||
./modules/gemini-cli.nix
|
||||
];
|
||||
|
||||
home = {
|
||||
|
|
30
home/toast/modules/gemini-cli.nix
Normal file
30
home/toast/modules/gemini-cli.nix
Normal 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})
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue