mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-10-04 15:45:39 +00:00
30 lines
674 B
Nix
30 lines
674 B
Nix
{ 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})
|
|
'';
|
|
}
|