-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprivate_dot_env.tmpl
More file actions
35 lines (33 loc) · 1.55 KB
/
Copy pathprivate_dot_env.tmpl
File metadata and controls
35 lines (33 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{{- /* Read a secret from macOS Keychain, returning empty string if not found */ -}}
{{- define "ks" -}}{{ output "sh" "-c" (printf "security find-generic-password -s chezmoi -a %s -w 2>/dev/null || true" .) | trim }}{{- end -}}
# Environment variables — managed by chezmoi
# Secrets sourced from macOS Keychain (Secure Enclave backed on Apple Silicon)
# First-time setup: chezmoi apply (run_once_before_01-setup-keychain.sh.tmpl will prompt)
{{ if .machine.isWork -}}
export GITHUB_TOKEN="{{ template "ks" "GITHUB_TOKEN" }}"
export ANTHROPIC_API_KEY="{{ template "ks" "ANTHROPIC_API_KEY" }}"
export LINEAR_API_KEY="{{ template "ks" "LINEAR_API_KEY" }}"
export LITELLM_API_KEY="{{ template "ks" "LITELLM_API_KEY" }}"
export SENTRY_AUTH_TOKEN="{{ template "ks" "SENTRY_AUTH_TOKEN" }}"
export NORTHFLANK_API_TOKEN="{{ template "ks" "NORTHFLANK_API_TOKEN" }}"
export GT_AUTH_TOKEN="{{ template "ks" "GT_AUTH_TOKEN" }}"
export RXDB_PREMIUM="{{ template "ks" "RXDB_PREMIUM" }}"
export NGROK_AUTHTOKEN="{{ template "ks" "NGROK_AUTHTOKEN" }}"
export FONTAWESOME_NPM_AUTH_TOKEN="{{ template "ks" "FONTAWESOME_NPM_AUTH_TOKEN" }}"
export AWS_PROFILE="work-profile"
export AWS_REGION="us-east-1"
export NODE_ENV="production"
{{ else -}}
export GITHUB_TOKEN="{{ template "ks" "GITHUB_TOKEN" }}"
export NODE_ENV="development"
{{ end }}
export EDITOR="nvim"
export VISUAL="nvim"
export PAGER="less"
export LESS="-R"
export CLICOLOR=1
{{ if .machine.isDarwin -}}
export DOCKER_HOST="unix://${HOME}/.colima/default/docker.sock"
export HOMEBREW_NO_ANALYTICS=1
export HOMEBREW_NO_AUTO_UPDATE=1
{{ end -}}