]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Follow recommendations for mta-sts formatting
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Thu, 2 Jul 2020 11:05:44 +0000 (13:05 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Thu, 2 Jul 2020 11:06:15 +0000 (13:06 +0200)
modules/private/websites/moomin.txt [new file with mode: 0644]
modules/private/websites/tools/mail/mta-sts.nix

diff --git a/modules/private/websites/moomin.txt b/modules/private/websites/moomin.txt
new file mode 100644 (file)
index 0000000..036fb1c
--- /dev/null
@@ -0,0 +1,16 @@
+⠀⠀⠀⠀⠀⠀⠀⢠⢦⡀⠀⡰⣩⠃
+⠀⠀⠀⠀⠀⠀⠀⠘⣄⠙⠍⠁⠙⠦⡀
+⠀⠀⠀⠀⠀⠀⠀⠀⡎⠀⠀⡠⠄⠔⠊⠉⠒⠒⠒⢄
+⠀⠀⠀⠀⠀⠀⠀⢀⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢈⠆
+⠀⠀⢠⢤⠜⡆⠀⢸⠀⠰⣄⠀⠀⠀⠀⠀⠀⠀⣠⠎
+⠀⠀⠱⠤⡁⠈⠑⠇⠀⠀⠀⠉⠒⠤⠤⠄⢖⠊⠀⡐⠧⣄⣀
+⠀⠀⠀⠀⠘⢆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⡉⠀⣀⣨⡷
+⠀⠀⠀⠀⠀⠈⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢱⠜⠁
+⠀⠀⠀⠀⠀⠀⢇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⣸⠱⡀
+⠀⠀⠀⠀⠀⠀⠸⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⠁⠀⣣
+⠀⠀⠀⠀⠀⠀⠀⠑⣄⠀⠀⠀⠀⠀⠀⠀⢀⣠⣀⠴⠊⠁
+⠰⢍⢒⢄⠀⠀⠀⠀⢸⢳⢆⠀⠀⠀⠰⡖⠋⠁
+⠀⠳⠴⣙⢄⠀⢀⡠⣣⠃⠈⠑⢤⡄⠀⡸⠂
+⠀⠀⠀⠀⠑⠋⠓⠊⠁⠀⠀⠀⠓⠒⠉
+Credentials: https://twitter.com/thingskatedid/status/1278274012754309120
+Credentials: https://gist.github.com/katef/09581d7c84eddf784508fa430f6ef47a
index c5d4306a73eed35a13b4a9e861eec203ae9c0ff7..c5f71f03b616de1aec47333751a9799ffffeb350 100644 (file)
@@ -18,12 +18,11 @@ let
     (lib.attrsets.filterAttrs (n: v: v.mx.enable) config.myEnv.servers);
   # FIXME: increase the id number in modules/private/dns.nix when this
   # file change (date -u +'%Y%m%d%H%M%S'Z)
-  file = domain: pkgs.writeText "mta-sts-${domain.domain}.txt" ''
-    version: STSv1
-    mode: testing
-    ${builtins.concatStringsSep "\n" (map (v: "mx: ${v}.${domain.mail}") mxes)}
-    max_age: 604800
-    '';
+  file = domain: pkgs.writeText "mta-sts-${domain.domain}.txt" (
+    builtins.concatStringsSep "\r\n" ([ "version: STSv1" "mode: testing" ]
+    ++ (map (v: "mx: ${v}.${domain.mail}") mxes)
+    ++ [ "max_age: 604800" ]
+    ));
   root = pkgs.runCommand "mta-sts_root" {} ''
     mkdir -p $out
     ${builtins.concatStringsSep "\n" (map (d: