From 9db8c76e2a9660758113a3f9f7d3820a36b0f31b Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Mon, 1 Jan 2024 19:42:20 +0000 Subject: [PATCH] Latest --- home/dot_config/git/config.tmpl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/home/dot_config/git/config.tmpl b/home/dot_config/git/config.tmpl index cd16bccb..12693404 100644 --- a/home/dot_config/git/config.tmpl +++ b/home/dot_config/git/config.tmpl @@ -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