mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-10-04 03:15:41 +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})
|
||||
'';
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
tailscale:
|
||||
authkey: ENC[AES256_GCM,data:ssxd13QKzXbezZs9ewR0CRsN0T6FMzQjGyJ5czjv4lHP6ODM1hAkS728vInfgq2hwUwVzs17I0C4017MGg==,iv:r/M4WtjrQZLdqidlFNUvY9NQhDSntNka2iYOAu+RQc8=,tag:kycZLagUboZ31ryQ3exi3w==,type:str]
|
||||
github_token: ENC[AES256_GCM,data:UUe3GfG3iqi0X1m+Bp27MVV8wWKtxOowxRpEtTkf0uET316JkozrBg==,iv:j42ZkKxCBkCZU3fiyP3vELFk0a6w4uW9XB8FmDWJaiw=,tag:ApIfHqgqgwWDWoyq0+uRRQ==,type:str]
|
||||
sops:
|
||||
age:
|
||||
- recipient: age1mggj0wsszz92kfpvq7pjlf0mthkljl9usu7u98jrmyxh85q4pecs6zz4ll
|
||||
|
@ -11,7 +12,7 @@ sops:
|
|||
Z0crWElZcVFMVUd0VytoTHFqbkRDck0KY8nsRThk1hCA/yDNy5JJ0T6pTUwRZhYW
|
||||
j8grD6JYvauuYa+3tSIwqy2RPiKltx696n9nXy9iPnFUO0QY/rQGVg==
|
||||
-----END AGE ENCRYPTED FILE-----
|
||||
lastmodified: "2025-08-23T08:50:02Z"
|
||||
mac: ENC[AES256_GCM,data:nlUuYj6F960mebfQEER+ZyUfulIRRC1Uo1U0ZvKLA/YeemIzbbS/PlVawncsYEmhl6dyQ3RsXTEEqV7dAr0Bz3Ds5TFf4zz5kvRAf++1ho8TGyjBC88qR6hEoShJsuTfjFUn6NWiYetIKbmnLsuclE2aQU+8fo54PvIx8ut8mpo=,iv:qOHR8lXg9IeSHHq5StrwVsgIC4tIOAzvcSGS6bO7MXc=,tag:tZ7PByMZAPwe10sr3YLRgw==,type:str]
|
||||
lastmodified: "2025-08-23T13:48:07Z"
|
||||
mac: ENC[AES256_GCM,data:pLobHx7xjLF4wKKwyF6ocrHZ9D8WVrbPMWK3vK3vIRL2D5zCzqdAC6RM/WD6QZ4ozPsMxQMVvLSQQUzIlWz9EuARXMXeL5BcABpc1qKNCmql0Pn3N4RrdWG/Ct36WU/4o8qzdOIwzbgnD4VHgpdRg81ru3gL3WbdO7CalB2N7Nw=,iv:BUEgXtmPWNB1wiMD68Ef+bHA8oXcIbaeV94LjOSG3Aw=,tag:P2rgn6r93ryk5dlM/KZYNg==,type:str]
|
||||
unencrypted_suffix: _unencrypted
|
||||
version: 3.10.2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue