mirror of
https://github.com/EdenQwQ/nixos.git
synced 2025-12-26 18:34:56 +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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue