mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 01:55:13 -05:00
feat: added claude code
This commit is contained in:
parent
d128f59d8e
commit
e325004210
4 changed files with 21 additions and 4 deletions
|
@ -1,9 +1,14 @@
|
||||||
|
{ flake, ... }:
|
||||||
|
let
|
||||||
|
inherit (flake.config.people) user0;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
programs.nushell = {
|
programs.nushell = {
|
||||||
enable = true;
|
enable = true;
|
||||||
configFile.text = ''
|
configFile.text = ''
|
||||||
sleep 7ms
|
sleep 7ms
|
||||||
$env.config = {show_banner: false}
|
$env.config = {show_banner: false}
|
||||||
|
$env.ANTHROPIC_API_KEY = (open /home/${user0}/.config/zed/claude-api-key)
|
||||||
'';
|
'';
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
y = "yy";
|
y = "yy";
|
||||||
|
|
|
@ -63,6 +63,7 @@ in
|
||||||
polychromatic
|
polychromatic
|
||||||
dolphin
|
dolphin
|
||||||
espanso
|
espanso
|
||||||
|
claudeCode
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
11
modules/home/gui/apps/tools/claudeCode/default.nix
Executable file
11
modules/home/gui/apps/tools/claudeCode/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
home.packages = builtins.attrValues {
|
||||||
|
inherit (pkgs)
|
||||||
|
claude-code
|
||||||
|
;
|
||||||
|
};
|
||||||
|
}
|
|
@ -61,10 +61,10 @@ in
|
||||||
path = "/home/${userLogic}/.ssh/known_hosts";
|
path = "/home/${userLogic}/.ssh/known_hosts";
|
||||||
owner = userLogic;
|
owner = userLogic;
|
||||||
};
|
};
|
||||||
# "claude-api-key" = {
|
"claude-api-key" = {
|
||||||
# path = "/home/${user0}/.config/zed/claude-api-key";
|
path = "/home/${user0}/.config/zed/claude-api-key";
|
||||||
# owner = user0;
|
owner = user0;
|
||||||
# };
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue