mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-15 17:45:12 -05:00
feat: fixed claude key
This commit is contained in:
parent
e88b50e51e
commit
3931df7b0a
1 changed files with 10 additions and 2 deletions
|
@ -1,6 +1,14 @@
|
|||
{ flake, ... }:
|
||||
{ flake, config, ... }:
|
||||
let
|
||||
|
||||
inherit (flake.config.people) user0;
|
||||
user = config.home.username;
|
||||
keyLogic =
|
||||
if user == user0 then
|
||||
"$env.ANTHROPIC_API_KEY = (open /home/${user0}/.config/zed/claude-api-key)"
|
||||
else
|
||||
"";
|
||||
|
||||
in
|
||||
{
|
||||
programs.nushell = {
|
||||
|
@ -8,7 +16,7 @@ in
|
|||
configFile.text = ''
|
||||
sleep 7ms
|
||||
$env.config = {show_banner: false}
|
||||
$env.ANTHROPIC_API_KEY = (open /home/${user0}/.config/zed/claude-api-key)
|
||||
${keyLogic}
|
||||
'';
|
||||
shellAliases = {
|
||||
y = "yy";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue