This commit is contained in:
Brian Zalewski 2024-01-01 19:42:20 +00:00
parent 5b59d498b3
commit 9db8c76e2a

View file

@ -155,13 +155,12 @@
[rerere]
enabled = true
autoupdate = true
# TODO: Upgrade this to use SendGrid instead
[sendemail]
smtpserver = smtp.gmail.com
smtpuser = {{ default "" .user.gmail.username }}
smtpserver = smtp.sendgrid.net
smtpuser = apikey
smtpencryption = tls
smtpserverport = 587
smtpPass = {{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "GMAIL_PASSWORD")) }}{{ includeTemplate "secrets/GMAIL_PASSWORD" | decrypt | trim }}{{ else }}{{ default "" (env "GMAIL_PASSWORD") }}{{ end }}
smtpPass = {{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "SENDGRID_API_KEY")) }}{{ includeTemplate "secrets/SENDGRID_API_KEY" | decrypt | trim }}{{ else }}{{ default "" (env "SENDGRID_API_KEY") }}{{ end }}
[status]
showUntrackedFiles = all
submoduleSummary = true