Remove rbw dependency and ask for OpenAI key directly

This commit is contained in:
Alexander Navarro 2024-05-21 17:32:44 -04:00
parent c6241adf5a
commit 1d91f3d683
4 changed files with 6 additions and 2 deletions

View file

@ -7,3 +7,4 @@
osid = {{ $osid | quote }}
hasGui = {{ promptBoolOnce . "hasGui" "Does this machine needs gui configs/apps?" }}
hasWOL = {{ promptBoolOnce . "hasWOL" "Does this machine WOL?" }}
openAIKey = {{ promptStringOnce . "openAIKey" "Enter Open AI key for chatGPT integration (or leave blank)" }}

View file

@ -4,6 +4,7 @@ packages:
- mise
- rbw
- yazi-fm
- yazi-cli
dnf:
copr:
- atim/lazygit

View file

@ -35,9 +35,11 @@ echo -e "${C_DODGERBLUE1}Installing packages...${NO_FORMAT}"
# ╰──────────────────────────────────────────────────────────╯
if ! command -v cargo > /dev/null; then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --default-toolchain stable
export PATH="$PATH:$HOME/.cargo/bin/"
fi
rustup update
# ╭──────────────────────────────────────────────────────────╮
# │ Install Cargo Packages │

View file

@ -10,7 +10,7 @@ export EDITOR=nvim
export VISUAL="$EDITOR"
export QT_STYLE_OVERRIDE=kvantum
export MOZ_ENABLE_WAYLAND=1
export OPENAI_API_KEY="{{ (rbwFields "OpenAI").api_key.value }}"
export OPENAI_API_KEY="{{ .openAIKey }}"
# Dev Stuff
export NPM_PACKAGES="$HOME/.npm-packages"