From 1d91f3d683cf7b2c07a6debb4cdfbcb15f72973e Mon Sep 17 00:00:00 2001 From: aleidk Date: Tue, 21 May 2024 17:32:44 -0400 Subject: [PATCH] Remove rbw dependency and ask for OpenAI key directly --- chezmoi/.chezmoi.toml.tmpl | 1 + chezmoi/.chezmoidata/packages.yaml | 1 + chezmoi/.chezmoiscripts/run_onchange_bootstrap.tmpl | 4 +++- chezmoi/executable_dot_zprofile.tmpl | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/chezmoi/.chezmoi.toml.tmpl b/chezmoi/.chezmoi.toml.tmpl index b6c4679..a577532 100644 --- a/chezmoi/.chezmoi.toml.tmpl +++ b/chezmoi/.chezmoi.toml.tmpl @@ -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)" }} diff --git a/chezmoi/.chezmoidata/packages.yaml b/chezmoi/.chezmoidata/packages.yaml index 3436b9e..aa94c29 100644 --- a/chezmoi/.chezmoidata/packages.yaml +++ b/chezmoi/.chezmoidata/packages.yaml @@ -4,6 +4,7 @@ packages: - mise - rbw - yazi-fm + - yazi-cli dnf: copr: - atim/lazygit diff --git a/chezmoi/.chezmoiscripts/run_onchange_bootstrap.tmpl b/chezmoi/.chezmoiscripts/run_onchange_bootstrap.tmpl index 3c0b8e9..79d6991 100644 --- a/chezmoi/.chezmoiscripts/run_onchange_bootstrap.tmpl +++ b/chezmoi/.chezmoiscripts/run_onchange_bootstrap.tmpl @@ -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 │ diff --git a/chezmoi/executable_dot_zprofile.tmpl b/chezmoi/executable_dot_zprofile.tmpl index a363a77..74907d3 100644 --- a/chezmoi/executable_dot_zprofile.tmpl +++ b/chezmoi/executable_dot_zprofile.tmpl @@ -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"