mirror of
https://github.com/EdenQwQ/nixos.git
synced 2025-12-26 10:14:58 +08:00
add api keys
This commit is contained in:
parent
5e9de3c83f
commit
d37eaeeac1
1 changed files with 9 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, config, ... }:
|
||||||
{
|
{
|
||||||
programs.gemini-cli = {
|
programs.gemini-cli = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -9,5 +9,13 @@
|
||||||
autoAccept = false;
|
autoAccept = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
programs.claude-code = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
home.sessionVariables = {
|
||||||
|
GEMINI_API_KEY = "$(cat ${config.age.secrets.gemini_token.path})";
|
||||||
|
ANTHROPIC_AUTH_TOKEN = "$(cat ${config.age.secrets.anyrouter_token.path})";
|
||||||
|
ANTHROPIC_BASE_URL = "https://anyrouter.top";
|
||||||
|
};
|
||||||
home.packages = with pkgs; [ qwen-code ];
|
home.packages = with pkgs; [ qwen-code ];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue