Update .local/share/chezmoi/home/.chezmoi.yaml.tmpl

This commit is contained in:
Brian Zalewski 2022-12-02 15:45:46 +00:00
parent c2760ee847
commit efb442a49e

View file

@ -1,33 +1,33 @@
{{- $name := "Brian Zalewski" -}} {{- $name := (default "Brian Zalewski" (env "FULL_NAME")) -}}
{{- $email := "brian@megabyte.space" -}} {{- $email := (default "brian@megabyte.space" (env "PRIMARY_EMAIL")) -}}
{{- $restricted := false -}} {{- $restricted := (default false (env "WORK_ENVIRONMENT")) -}}
{{- $work := false -}} {{- $work := (default false (env "WORK_ENVIRONMENT") -}}
{{- $gpgKeyId := "0xF0A300E4199A1C33" -}} {{- $gpgKeyId := (default "0xF0A300E4199A1C33" (env "KEYID")) -}}
{{- $gmailAddress := "blzalewski@gmail.com" -}} {{- $gmailAddress := (default "blzalewski@gmail.com" (env "GMAIL_ADDRESS")) -}}
{{- $gmailAddressAppPassword := "" -}} {{- $gmailAddressAppPassword := (default "" (env "GMAIL_APP_PASSWORD")) -}}
{{- $domain := "megabyte.space" -}} {{- $domain := (default "megabyte.space" (env "PUBLIC_SERVICES_DOMAIN")) -}}
{{- $cloudflareUsername := "brian@megabyte.space" -}} {{- $cloudflareUsername := (default "brian@megabyte.space" (env "CLOUDFLARE_USERNAME")) -}}
{{- $cloudflareToken := "" -}} {{- $cloudflareToken := "" -}}
{{- $cloudflareAccessKeyId := "" -}} {{- $cloudflareAccessKeyId := "" -}}
{{- $cloudflareSecretAccessKey := "" -}} {{- $cloudflareSecretAccessKey := "" -}}
{{- $cloudflareR2AccountId := "" -}} {{- $cloudflareR2AccountId := "" -}}
{{- $githubUsername := "ProfessorManhattan" -}} {{- $githubUsername := (default "ProfessorManhattan" (env "GITHUB_USERNAME")) -}}
{{- $githubReadToken := (env "GITHUB_READ_TOKEN") -}} {{- $githubReadToken := (env "GITHUB_READ_TOKEN") -}}
{{- $gitlabReadToken := (env "GITLAB_READ_TOKEN") -}} {{- $gitlabReadToken := (env "GITLAB_READ_TOKEN") -}}
{{- $locale := (output "echo" "$LANG") }} {{- $locale := (output "echo" "$LANG") }}
{{- $ngrokAuthToken := (env "NGROK_AUTH_TOKEN") -}} {{- $ngrokAuthToken := (default "" (env "NGROK_AUTH_TOKEN")) -}}
{{- $slackApiToken := (env "SLACK_API_TOKEN") -}} {{- $slackApiToken := (default "" (env "SLACK_API_TOKEN")) -}}
{{- $tabbyConfigId := (env "TABBY_CONFIG_ID") -}} {{- $tabbyConfigId := (default "" (env "TABBY_CONFIG_ID")) -}}
{{- $tabbySyncToken := (env "TABBY_SYNC_TOKEN") -}} {{- $tabbySyncToken := (default "" (env "TABBY_SYNC_TOKEN")) -}}
{{- $timezone := "America/New_York" -}} {{- $timezone := (default "America/New_York" (env "TIMEZONE")) -}}
{{- $toolchains := list "docker" "go" "java" "kubernetes" "python" "rust" "extras" "web" "gpg" -}} {{- $toolchains := list "docker" "go" "java" "kubernetes" "python" "rust" "extras" "web" "gpg" -}}
{{- $desktopSession := true -}} {{- $desktopSession := true -}}
{{- if and (ne .chezmoi.os "darwin") (ne .chezmoi.os "windows") (not $.Env.DISPLAY) -}} {{- if and (ne .chezmoi.os "darwin") (ne .chezmoi.os "windows") (not (env "DISPLAY")) -}}
{{- $desktopSession = false -}} {{- $desktopSession = false -}}
{{- end -}} {{- end -}}
{{- $softwareGroup := "Standard" -}} {{- $softwareGroup := (default "Standard" (env "SOFTWARE_GROUP")) -}}
{{- if $desktopSession -}} {{- if $desktopSession -}}
{{- $softwareGroup = "Standard-Desktop" -}} {{- $softwareGroup = (join $softwareGroup "-Desktop") -}}
{{- end -}} {{- end -}}
{{- $data := . }} {{- $data := . }}
@ -119,7 +119,9 @@
{{- $ngrokAuthToken = promptStringOnce $data.user "ngrokAuthToken" "Ngrok authentication token" $ngrokAuthToken -}} {{- $ngrokAuthToken = promptStringOnce $data.user "ngrokAuthToken" "Ngrok authentication token" $ngrokAuthToken -}}
{{- $slackApiToken = promptStringOnce $data.user "slackApiToken" "Slack API token" $slackApiToken -}} {{- $slackApiToken = promptStringOnce $data.user "slackApiToken" "Slack API token" $slackApiToken -}}
{{- $tabbyConfigId = promptStringOnce $data.user "tabbyConfigId" "Tabby Configuration ID" $tabbyConfigId -}} {{- $tabbyConfigId = promptStringOnce $data.user "tabbyConfigId" "Tabby Configuration ID" $tabbyConfigId -}}
{{- $tabbySyncToken = promptStringOnce $data.user "tabbySyncToken" "Tabby Sync Token" $tabbySyncToken -}} {{- if not (env "TABBY_SYNC_TOKEN")) -}}
{{- $tabbySyncToken = promptStringOnce $data.user "tabbySyncToken" "Tabby Sync Token" $tabbySyncToken -}}
{{- end -}}
{{- else -}} {{- else -}}
{{- $headless = true -}} {{- $headless = true -}}