mirror of
https://github.com/Xevion/dotfiles.git
synced 2025-12-06 15:14:52 -06:00
Switch to doppler key vault for remaining rbw usages
This commit is contained in:
@@ -7,7 +7,8 @@ export MICRO_TRUECOLOR=1
|
||||
export TERM=xterm-256color # fixes terminal colors when ssh'ing into laptop
|
||||
|
||||
# authentication
|
||||
export OPENAI_API_KEY="{{ (rbw "OpenAI - chatgpt-cli Key").data.password }}"
|
||||
|
||||
export OPENAI_API_KEY="{{ dopplerProjectJson.OPENAI_CHATGPT_CLI }}"
|
||||
|
||||
# hishtory
|
||||
export HISHTORY_SERVER="https://hsh.{{ .data.privateDomain }}"
|
||||
@@ -63,8 +64,9 @@ if [ -d $HOME/.jenv/bin ]; then
|
||||
fi
|
||||
|
||||
if command -v hass-cli &> /dev/null; then
|
||||
export HASS_SERVER={{ (index (rbw "HAS-CLI-CODE Token").data.uris 0).uri }}
|
||||
export HASS_TOKEN={{ (rbw "HAS-CLI-CODE Token").data.password }}
|
||||
export HASS_SERVER={{ dopplerProjectJson.HASS_SERVER_URL }}
|
||||
export HASS_TOKEN={{ dopplerProjectJson.HASS_SERVER_TOKEN }}
|
||||
|
||||
{{ if eq .shell "bash" -}}
|
||||
source <(_HASS_CLI_COMPLETE=bash_source hass-cli)
|
||||
{{ else if eq .shell "zsh" -}}
|
||||
|
||||
@@ -55,10 +55,12 @@ fi
|
||||
|
||||
# Hishtory initialization
|
||||
if type -P hishtory; then
|
||||
if ! hishtory status | grep -q "$(rbw get 'hishtory-user_secret')"; then
|
||||
|
||||
|
||||
if ! hishtory status | grep -q "$(doppler secrets get HISHTORY_USER_SECRET --plain)"; then
|
||||
echo "chezmoi: expected user secret not found, initializing hishtory"
|
||||
|
||||
hishtory init "$(rbw get 'hishtory-user_secret')" --force
|
||||
hishtory init "$(doppler secrets get HISHTORY_USER_SECRET --plain)" --force
|
||||
hishtory syncing enable
|
||||
fi
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user