diff --git a/dns/shelvacu.com.nix b/dns/shelvacu.com.nix index 9a0bbf7..9005b7f 100644 --- a/dns/shelvacu.com.nix +++ b/dns/shelvacu.com.nix @@ -1,5 +1,6 @@ { config, + lib, ... }: let @@ -9,6 +10,16 @@ let prop_ips = s dnsData.propPublicV4; solis_ips = s config.vacu.hosts.solis.primaryIp; mail_thing = s "178.128.79.152"; + allow_report_domains = [ + "dis8.net" + "chat.for.miras.pet" + "jean-luc.org" + "pwrhs.win" + "shelvacu.com" + "shelvacu.miras.pet" + "sv.mt" + ]; + # dmarc_allow = { TXT = [ "v=DMARC1" ]; }; in { vacu.dns."shelvacu.com" = @@ -87,6 +98,11 @@ in _acme-challenge.CNAME = s "17aa43aa-9295-4522-8cf2-b94ba537753d.auth.acme-dns.io."; }; dav-experiment.A = prop_ips; + "_report._dmarc".subdomains = lib.pipe allow_report_domains [ + (lib.concatMap (domain: [domain "*.${domain}"])) + (map (domain: lib.nameValuePair domain { TXT = "v=DMARC1"; })) + (lib.listToAttrs) + ]; }; }; }