1 { pkgs, lib, config, ... }:
3 inherit (builtins.extraBuiltins) pass;
5 inherit (config.services) rspamd;
6 domain = "sourcephile.fr";
10 deployment.keys."dkim.${domain}.${selector}.key" = {
11 text = pass "dkim/${domain}/${selector}.key";
14 destDir = "/run/keys/";
17 systemd.services.rspamd.after =
18 [ "dkim.${domain}.${selector}.key-key.service" ];
19 services.rspamd.dkimSelectorMap = ''
23 services.knot.zones."${domain}".data = ''
24 20200101._domainkey IN TXT ( "v=DKIM1; k=rsa; "
25 "p=MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA7EKzverbG+5JF+yFjH3MrxLyauiHyLqBbV/8LEMunoKXF8sqhBpQtAQXruLqsyUkxR/4CAyPMyzmcdrU43boMj9yFqLrg/kEz2RIvai9jXBqRoWRW1y7F0LbZmdtOTncuDSP8Zzo02XUzsOC4f/C3tEQHS5rc"
26 "hzfhU5FY1CeO6eBMV79qKBOvGMKahQTrrtU6olAAJxOhn6wRuwSf"
27 "+m3on1OqiuXYYIgNHKdRhJ8gDwIm/3LEpYMD0gTgJiyclCLoLGHGtKZy1Wf9xV9/7V6fHE4JW5SDivwslVTL+KPXOlIpo5NDHpMxPYOcIg2K4Rj/j7jhavo+fG43q1LhwaPkEMQMbplgnjeMY8300odRiklTkMMpH0m35ZNeHQJSRpEtV8y5xUNxVaGzfqX5iStwV/mQ1Kn"
28 "ZSe8ORTNq+eTTFnDk6zdUXjagcf0wO6QsSTeAz/G8CqOBbwmrU+q"
29 "F8WbGAeRnhz51mH6fTTfsQ1nwjAiF4ou+eQGTkTMN23KkCKpuozJnxqx4DCEr6J1bL83fhXw7CgcfgKgTOk/HFJpeiGhqodw18r4DWBA6G57z9utm7Mr/9SoVnMq6iK9iEcbCllLR8Sz4viatLSRzhodbk7hfvXS3jmCFjILAjFmA7aMTemDMBDQhpAGF9F8sjFUbEJIZjK"
30 "rWWtSTdO8DilDqN8CAwEAAQ=="
33 services.nsd.zones."${domain}".data = ''
34 20200101._domainkey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