From 18155ec6e14179f286f81f8d61bfe3fe23013b8b Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Sun, 1 Oct 2023 21:24:02 +0100 Subject: [PATCH] feat: got email working Closes #1 --- applications/email.nix | 2 +- applications/gitlab.nix | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/applications/email.nix b/applications/email.nix index c91f4da..5275bd7 100644 --- a/applications/email.nix +++ b/applications/email.nix @@ -118,7 +118,7 @@ in { { record = "${cfg.domain}."; r_type = "TXT"; - value = ''"v=spf1 a:${cfg.sub}.${cfg.domain} -all"''; + value = ''"v=spf1 a:${cfg.sub}.${cfg.domain} a:gitlab.skynet.ie -all"''; } # DKIM keys diff --git a/applications/gitlab.nix b/applications/gitlab.nix index 0840614..3342607 100644 --- a/applications/gitlab.nix +++ b/applications/gitlab.nix @@ -174,11 +174,10 @@ in { */ }; }; - #smtp = { - # enable = true; - # address = "localhost"; - # port = 25; - #}; + + # use the local email client + smtp.enable = true; + secrets = { dbFile = config.age.secrets.gitlab_secrets_db.path; secretFile = config.age.secrets.gitlab_secrets_secret.path;