mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 01:55:13 -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
|
let
|
||||||
|
|
||||||
inherit (flake.config.people) user0;
|
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
|
in
|
||||||
{
|
{
|
||||||
programs.nushell = {
|
programs.nushell = {
|
||||||
|
@ -8,7 +16,7 @@ in
|
||||||
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)
|
${keyLogic}
|
||||||
'';
|
'';
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
y = "yy";
|
y = "yy";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue