2023-02-03 23:01:12 -08:00
|
|
|
{{- if (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) -}}
|
2022-12-01 20:53:42 -08:00
|
|
|
#!/usr/bin/env sh
|
Update dotfiles/.local/share/chezmoi/home/private_dot_config/shell/encrypted_private_dot_private, dotfiles/.local/share/chezmoi/home/.chezmoi.yaml.tmpl, dotfiles/.local/share/chezmoi/home/private_dot_config/tabby/config.yaml.tmpl, dotfiles/.local/share/chezmoi/home/dot_ssh/run_onchanges_after_generate-public-keys.tmpl, dotfiles/.local/share/chezmoi/home/dot_local/bin/executable_run, dotfiles/.local/share/chezmoi/home/private_dot_config/oh-my-posh/Betelgeuse-minimal.omp.json, dotfiles/.local/share/chezmoi/home/dot_local/state/bash/remove_dot_gitkeep, dotfiles/.local/share/chezmoi/home/dot_local/state/zsh/remove_dot_gitkeep, dotfiles/.local/share/chezmoi/home/.chezmoiscripts/_universal/run_onchange_after_60-cleanup.tmpl, dotfiles/.local/share/chezmoi/home/dot_local/.config/symlink_taskfiles, dotfiles/.local/share/chezmoi/home/dot_local/symlink_Taskfile-upstream.yml.tmpl, dotfiles/.local/share/chezmoi/home/dot_local/Taskfile-local.yml, dotfiles/.local/share/chezmoi/home/private_dot_config/rofi/config.rasi.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoidata.yml
Deleted dotfiles/.local/share/chezmoi/home/dot_local/state/bash/.gitkeep, dotfiles/.local/share/chezmoi/home/dot_local/state/zsh/.gitkeep
2022-11-27 08:17:07 -08:00
|
|
|
|
2023-02-03 23:01:12 -08:00
|
|
|
### Ansible
|
|
|
|
export ANSIBLE_GALAXY_TOKEN="{{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "key-ansible-galaxy-api-key")) }}{{ includeTemplate "secrets/key-ansible-galaxy-api-key" }}{{ else }}{{ env "ANSIBLE_GALAXY_TOKEN" }}{{ end }}"
|
|
|
|
export ANSIBLE_VAULT_PASSWORD="{{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "key-ansible-vault-password")) }}{{ includeTemplate "secrets/key-ansible-vault-password" }}{{ else }}{{ env "ANSIBLE_VAULT_PASSWORD" }}{{ end }}"
|
|
|
|
export AVP="$ANSIBLE_VAULT_PASSWORD"
|
|
|
|
|
|
|
|
### Google Cloud SDK
|
|
|
|
export CLOUDSDK_CORE_PROJECT="{{ .user.gcloud.coreProject }}"
|
|
|
|
export GCE_SERVICE_ACCOUNT_EMAIL="{{ .user.gcloud.email }}"
|
|
|
|
export GCE_CREDENTIALS_FILE="$HOME/.config/gcloud/gcp.json"
|
|
|
|
|
|
|
|
### CloudFlare
|
|
|
|
export LEXICON_CLOUDFLARE_TOKEN=""
|
2023-02-15 19:08:09 -08:00
|
|
|
export LEXICON_CLOUDFLARE_USERNAME="{{ .user.cloudflare.username }}"
|
Update dotfiles/.local/share/chezmoi/home/private_dot_config/shell/encrypted_private_dot_private, dotfiles/.local/share/chezmoi/home/.chezmoi.yaml.tmpl, dotfiles/.local/share/chezmoi/home/private_dot_config/tabby/config.yaml.tmpl, dotfiles/.local/share/chezmoi/home/dot_ssh/run_onchanges_after_generate-public-keys.tmpl, dotfiles/.local/share/chezmoi/home/dot_local/bin/executable_run, dotfiles/.local/share/chezmoi/home/private_dot_config/oh-my-posh/Betelgeuse-minimal.omp.json, dotfiles/.local/share/chezmoi/home/dot_local/state/bash/remove_dot_gitkeep, dotfiles/.local/share/chezmoi/home/dot_local/state/zsh/remove_dot_gitkeep, dotfiles/.local/share/chezmoi/home/.chezmoiscripts/_universal/run_onchange_after_60-cleanup.tmpl, dotfiles/.local/share/chezmoi/home/dot_local/.config/symlink_taskfiles, dotfiles/.local/share/chezmoi/home/dot_local/symlink_Taskfile-upstream.yml.tmpl, dotfiles/.local/share/chezmoi/home/dot_local/Taskfile-local.yml, dotfiles/.local/share/chezmoi/home/private_dot_config/rofi/config.rasi.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoidata.yml
Deleted dotfiles/.local/share/chezmoi/home/dot_local/state/bash/.gitkeep, dotfiles/.local/share/chezmoi/home/dot_local/state/zsh/.gitkeep
2022-11-27 08:17:07 -08:00
|
|
|
|
2023-02-03 23:01:12 -08:00
|
|
|
### DockerHub
|
|
|
|
export DOCKERHUB_TOKEN="{{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "key-dockerhub-api-key")) }}{{ includeTemplate "secrets/key-dockerhub-api-key" }}{{ else }}{{ env "DOCKERHUB_TOKEN" }}{{ end }}"
|
Update dotfiles/.local/share/chezmoi/home/private_dot_config/shell/encrypted_private_dot_private, dotfiles/.local/share/chezmoi/home/.chezmoi.yaml.tmpl, dotfiles/.local/share/chezmoi/home/private_dot_config/tabby/config.yaml.tmpl, dotfiles/.local/share/chezmoi/home/dot_ssh/run_onchanges_after_generate-public-keys.tmpl, dotfiles/.local/share/chezmoi/home/dot_local/bin/executable_run, dotfiles/.local/share/chezmoi/home/private_dot_config/oh-my-posh/Betelgeuse-minimal.omp.json, dotfiles/.local/share/chezmoi/home/dot_local/state/bash/remove_dot_gitkeep, dotfiles/.local/share/chezmoi/home/dot_local/state/zsh/remove_dot_gitkeep, dotfiles/.local/share/chezmoi/home/.chezmoiscripts/_universal/run_onchange_after_60-cleanup.tmpl, dotfiles/.local/share/chezmoi/home/dot_local/.config/symlink_taskfiles, dotfiles/.local/share/chezmoi/home/dot_local/symlink_Taskfile-upstream.yml.tmpl, dotfiles/.local/share/chezmoi/home/dot_local/Taskfile-local.yml, dotfiles/.local/share/chezmoi/home/private_dot_config/rofi/config.rasi.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoidata.yml
Deleted dotfiles/.local/share/chezmoi/home/dot_local/state/bash/.gitkeep, dotfiles/.local/share/chezmoi/home/dot_local/state/zsh/.gitkeep
2022-11-27 08:17:07 -08:00
|
|
|
export DOCKERHUB_REGISTRY_PASSWORD="$DOCKERHUB_TOKEN"
|
2023-02-03 23:01:12 -08:00
|
|
|
|
|
|
|
### GitHub
|
|
|
|
export GH_TOKEN="{{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "key-github-pat")) }}{{ includeTemplate "secrets/key-github-pat" }}{{ else }}{{ env "GITHUB_TOKEN" }}{{ end }}"
|
Update dotfiles/.local/share/chezmoi/home/private_dot_config/shell/encrypted_private_dot_private, dotfiles/.local/share/chezmoi/home/.chezmoi.yaml.tmpl, dotfiles/.local/share/chezmoi/home/private_dot_config/tabby/config.yaml.tmpl, dotfiles/.local/share/chezmoi/home/dot_ssh/run_onchanges_after_generate-public-keys.tmpl, dotfiles/.local/share/chezmoi/home/dot_local/bin/executable_run, dotfiles/.local/share/chezmoi/home/private_dot_config/oh-my-posh/Betelgeuse-minimal.omp.json, dotfiles/.local/share/chezmoi/home/dot_local/state/bash/remove_dot_gitkeep, dotfiles/.local/share/chezmoi/home/dot_local/state/zsh/remove_dot_gitkeep, dotfiles/.local/share/chezmoi/home/.chezmoiscripts/_universal/run_onchange_after_60-cleanup.tmpl, dotfiles/.local/share/chezmoi/home/dot_local/.config/symlink_taskfiles, dotfiles/.local/share/chezmoi/home/dot_local/symlink_Taskfile-upstream.yml.tmpl, dotfiles/.local/share/chezmoi/home/dot_local/Taskfile-local.yml, dotfiles/.local/share/chezmoi/home/private_dot_config/rofi/config.rasi.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoidata.yml
Deleted dotfiles/.local/share/chezmoi/home/dot_local/state/bash/.gitkeep, dotfiles/.local/share/chezmoi/home/dot_local/state/zsh/.gitkeep
2022-11-27 08:17:07 -08:00
|
|
|
export GITHUB_TOKEN="$GH_TOKEN"
|
2023-02-03 23:01:12 -08:00
|
|
|
|
|
|
|
### GitLab
|
|
|
|
export GL_TOKEN="{{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "key-gitlab-pat")) }}{{ includeTemplate "secrets/key-gitlab-pat" }}{{ else }}{{ env "GITLAB_TOKEN" }}{{ end }}"
|
Update dotfiles/.local/share/chezmoi/home/private_dot_config/shell/encrypted_private_dot_private, dotfiles/.local/share/chezmoi/home/.chezmoi.yaml.tmpl, dotfiles/.local/share/chezmoi/home/private_dot_config/tabby/config.yaml.tmpl, dotfiles/.local/share/chezmoi/home/dot_ssh/run_onchanges_after_generate-public-keys.tmpl, dotfiles/.local/share/chezmoi/home/dot_local/bin/executable_run, dotfiles/.local/share/chezmoi/home/private_dot_config/oh-my-posh/Betelgeuse-minimal.omp.json, dotfiles/.local/share/chezmoi/home/dot_local/state/bash/remove_dot_gitkeep, dotfiles/.local/share/chezmoi/home/dot_local/state/zsh/remove_dot_gitkeep, dotfiles/.local/share/chezmoi/home/.chezmoiscripts/_universal/run_onchange_after_60-cleanup.tmpl, dotfiles/.local/share/chezmoi/home/dot_local/.config/symlink_taskfiles, dotfiles/.local/share/chezmoi/home/dot_local/symlink_Taskfile-upstream.yml.tmpl, dotfiles/.local/share/chezmoi/home/dot_local/Taskfile-local.yml, dotfiles/.local/share/chezmoi/home/private_dot_config/rofi/config.rasi.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoidata.yml
Deleted dotfiles/.local/share/chezmoi/home/dot_local/state/bash/.gitkeep, dotfiles/.local/share/chezmoi/home/dot_local/state/zsh/.gitkeep
2022-11-27 08:17:07 -08:00
|
|
|
export GITLAB_TOKEN="$GL_TOKEN"
|
|
|
|
|
2023-02-03 23:01:12 -08:00
|
|
|
### Heroku
|
|
|
|
export HEROKU_API_KEY="{{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "key-heroku-api-key")) }}{{ includeTemplate "secrets/key-heroku-api-key" }}{{ else }}{{ env "HEROKU_API_KEY" }}{{ end }}"
|
|
|
|
|
|
|
|
### Megabyte Labs
|
Update dotfiles/.local/share/chezmoi/home/private_dot_config/shell/encrypted_private_dot_private, dotfiles/.local/share/chezmoi/home/.chezmoi.yaml.tmpl, dotfiles/.local/share/chezmoi/home/private_dot_config/tabby/config.yaml.tmpl, dotfiles/.local/share/chezmoi/home/dot_ssh/run_onchanges_after_generate-public-keys.tmpl, dotfiles/.local/share/chezmoi/home/dot_local/bin/executable_run, dotfiles/.local/share/chezmoi/home/private_dot_config/oh-my-posh/Betelgeuse-minimal.omp.json, dotfiles/.local/share/chezmoi/home/dot_local/state/bash/remove_dot_gitkeep, dotfiles/.local/share/chezmoi/home/dot_local/state/zsh/remove_dot_gitkeep, dotfiles/.local/share/chezmoi/home/.chezmoiscripts/_universal/run_onchange_after_60-cleanup.tmpl, dotfiles/.local/share/chezmoi/home/dot_local/.config/symlink_taskfiles, dotfiles/.local/share/chezmoi/home/dot_local/symlink_Taskfile-upstream.yml.tmpl, dotfiles/.local/share/chezmoi/home/dot_local/Taskfile-local.yml, dotfiles/.local/share/chezmoi/home/private_dot_config/rofi/config.rasi.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoidata.yml
Deleted dotfiles/.local/share/chezmoi/home/dot_local/state/bash/.gitkeep, dotfiles/.local/share/chezmoi/home/dot_local/state/zsh/.gitkeep
2022-11-27 08:17:07 -08:00
|
|
|
export FULLY_AUTOMATED_TASKS=true
|
2023-02-03 23:01:12 -08:00
|
|
|
|
|
|
|
### NPM
|
|
|
|
export NPM_TOKEN="{{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "key-npm-api-key")) }}{{ includeTemplate "secrets/key-npm-api-key" }}{{ else }}{{ env "NPM_TOKEN" }}{{ end }}"
|
|
|
|
|
|
|
|
### PyPi
|
|
|
|
export PYPI_TOKEN="{{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "key-pypi-api-key")) }}{{ includeTemplate "secrets/key-pypi-api-key" }}{{ else }}{{ env "PYPI_TOKEN" }}{{ end }}"
|
|
|
|
|
|
|
|
### Snapcraft
|
|
|
|
export SNAPCRAFT_EMAIL="{{ .user.snapcraft.username }}"
|
|
|
|
export SNAPCRAFT_MACAROON="{{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "key-snapcraft-macaroon")) }}{{ includeTemplate "secrets/key-snapcraft-macaroon" }}{{ else }}{{ env "SNAPCRAFT_MACAROON" }}{{ end }}"
|
|
|
|
export SNAPCRAFT_UNBOUND_DISCHARGE="{{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "key-snapcraft-discharge")) }}{{ includeTemplate "secrets/key-snapcraft-discharge" }}{{ else }}{{ env "SNAPCRAFT_UNBOUND_DISCHARGE" }}{{ end }}"
|
|
|
|
|
|
|
|
### Vagrant Cloud
|
|
|
|
export VAGRANT_CLOUD_TOKEN="{{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "key-vagrant-cloud")) }}{{ includeTemplate "secrets/key-vagrant-cloud" }}{{ else }}{{ env "VAGRANT_CLOUD_TOKEN" }}{{ end }}"
|
|
|
|
|
|
|
|
{{ end -}}
|