From bb050d57fd6dd22ad64bf2674327c19d63a72b5c Mon Sep 17 00:00:00 2001 From: daragh Date: Sat, 21 Oct 2023 16:33:40 +0100 Subject: [PATCH 1/2] Feat : added dns config for k-9 mail. Related to #33 --- applications/email.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/applications/email.nix b/applications/email.nix index aca44bd..db1942d 100644 --- a/applications/email.nix +++ b/applications/email.nix @@ -120,6 +120,22 @@ in { r_type = "A"; value = cfg.host.ip; } + #DNS config for K-9 Mail + { + record = "imap"; + r_type = "CNAME"; + value = "mail"; + } + { + record = "pop3"; + r_type = "CNAME"; + value = "mail"; + } + { + record = "smtp"; + r_type = "CNAME"; + value = "mail"; + } # TXT records, all tehse are inside escaped strings to allow using "" # SPF record From 7f22a9efa95784a499313e9fa0f7e80dc998e729 Mon Sep 17 00:00:00 2001 From: daragh Date: Sat, 21 Oct 2023 16:44:28 +0100 Subject: [PATCH 2/2] fixed formatting --- applications/email.nix | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/applications/email.nix b/applications/email.nix index db1942d..5cf2aaf 100644 --- a/applications/email.nix +++ b/applications/email.nix @@ -122,19 +122,19 @@ in { } #DNS config for K-9 Mail { - record = "imap"; - r_type = "CNAME"; - value = "mail"; + record = "imap"; + r_type = "CNAME"; + value = "mail"; } { - record = "pop3"; - r_type = "CNAME"; - value = "mail"; + record = "pop3"; + r_type = "CNAME"; + value = "mail"; } { - record = "smtp"; - r_type = "CNAME"; - value = "mail"; + record = "smtp"; + r_type = "CNAME"; + value = "mail"; } # TXT records, all tehse are inside escaped strings to allow using ""