diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-04-13 10:41:30 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-04-13 10:41:30 +0200 |
commit | 0f466f6d5aec0d3fcf406fe2bb71effa5a1a1386 (patch) | |
tree | ff5a002512e0d68ed6adfe7d0361bfab1fe75abd /nixops/modules/dns/default.nix | |
parent | e2ca51b2f47652f64b497e53249c29ad4b96a6e9 (diff) | |
download | Nix-0f466f6d5aec0d3fcf406fe2bb71effa5a1a1386.tar.gz Nix-0f466f6d5aec0d3fcf406fe2bb71effa5a1a1386.tar.zst Nix-0f466f6d5aec0d3fcf406fe2bb71effa5a1a1386.zip |
Cleanup e-mails from immae.eu domains
Diffstat (limited to 'nixops/modules/dns/default.nix')
-rw-r--r-- | nixops/modules/dns/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixops/modules/dns/default.nix b/nixops/modules/dns/default.nix index 7937714..34019d1 100644 --- a/nixops/modules/dns/default.nix +++ b/nixops/modules/dns/default.nix | |||
@@ -68,8 +68,8 @@ | |||
68 | server-id none; | 68 | server-id none; |
69 | ''; | 69 | ''; |
70 | zones = with myconfig.env.dns; | 70 | zones = with myconfig.env.dns; |
71 | assert (builtins.substring ((builtins.stringLength soa.email)-1) 1 soa.email) == "."; | 71 | assert (builtins.substring ((builtins.stringLength soa.email)-1) 1 soa.email) != "."; |
72 | assert (builtins.substring ((builtins.stringLength soa.primary)-1) 1 soa.primary) == "."; | 72 | assert (builtins.substring ((builtins.stringLength soa.primary)-1) 1 soa.primary) != "."; |
73 | (map (conf: { | 73 | (map (conf: { |
74 | name = conf.name; | 74 | name = conf.name; |
75 | master = false; | 75 | master = false; |
@@ -87,7 +87,7 @@ | |||
87 | else []; | 87 | else []; |
88 | file = pkgs.writeText "${conf.name}.zone" '' | 88 | file = pkgs.writeText "${conf.name}.zone" '' |
89 | $TTL 10800 | 89 | $TTL 10800 |
90 | @ IN SOA ${soa.primary} ${soa.email} ${soa.serial} ${soa.refresh} ${soa.retry} ${soa.expire} ${soa.ttl} | 90 | @ IN SOA ${soa.primary}. ${builtins.replaceStrings ["@"] ["."] soa.email}. ${soa.serial} ${soa.refresh} ${soa.retry} ${soa.expire} ${soa.ttl} |
91 | 91 | ||
92 | ${lib.concatStringsSep "\n" (map (x: "@ IN NS ${x}.") (lib.concatMap (n: lib.attrsets.mapAttrsToList (k: v: k) ns.${n}) conf.ns))} | 92 | ${lib.concatStringsSep "\n" (map (x: "@ IN NS ${x}.") (lib.concatMap (n: lib.attrsets.mapAttrsToList (k: v: k) ns.${n}) conf.ns))} |
93 | 93 | ||