mirror of
https://github.com/EdenQwQ/nixos.git
synced 2025-12-26 10:14:58 +08:00
add claude code
This commit is contained in:
parent
9dc96a2264
commit
27da0e6e22
6 changed files with 22 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
|||
pkgs,
|
||||
lib,
|
||||
user,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
|
|
|||
10
home/programs/utils/claude-code.nix
Normal file
10
home/programs/utils/claude-code.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ pkgs, config, ... }:
|
||||
{
|
||||
home = {
|
||||
packages = with pkgs; [ claude-code ];
|
||||
sessionVariables = {
|
||||
ANTHROPIC_BASE_URL = "https://anyrouter.top";
|
||||
ANTHROPIC_AUTH_TOKEN = "$(cat ${config.age.secrets.anyrouter_token.path})";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -49,6 +49,7 @@
|
|||
./eye-candy.nix
|
||||
./obs.nix
|
||||
./music.nix
|
||||
./claude-code.nix
|
||||
];
|
||||
programs.pay-respects.enable = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,5 +7,6 @@
|
|||
tavily_token.file = ./tavily_token.age;
|
||||
zjuconnect_password.file = ./zjuconnect_password.age;
|
||||
linkai_token.file = ./linkai_token.age;
|
||||
anyrouter_token.file = ./anyrouter_token.age;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
8
secrets/anyrouter_token.age
Normal file
8
secrets/anyrouter_token.age
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
age-encryption.org/v1
|
||||
-> ssh-ed25519 MpnI9A nLoexyv+r5A/jy8gQHN+s6dKYBY/Gj8mEDnkTrG+WkU
|
||||
jreZfFiRKi6djvlD5zi58JrBzRO42GDZpg05/X9ktwU
|
||||
-> ssh-ed25519 6VlDkQ /yvFIzYV9KD4lzsn4awfJoYBEjy9niUeBf/x48qcRwc
|
||||
e5P2E30YSt5C9HhHaGeBUXQqBZ54qMsF/MDVTEOnyi4
|
||||
--- Lv3x2G57waYiI/ITKLv3ztBJKA+CAE5c2raS+iUU9vI
|
||||
ë*÷`mi×-àr¨·Š‰1>edðŒÝ?Yã)¨|¢»v`ØsúÝIomëd¾'))`ç
|
||||
²äâô99÷ây®Rüÿ¨^5öX+ÁSZr:Aw
|
||||
|
|
@ -9,6 +9,7 @@ let
|
|||
"tavily_token"
|
||||
"zjuconnect_password"
|
||||
"linkai_token"
|
||||
"anyrouter_token"
|
||||
];
|
||||
in
|
||||
builtins.listToAttrs (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue