diff --git a/nixos/profiles/services/knot/primary.nix b/nixos/profiles/services/knot/primary.nix index 983c34b..371f25c 100644 --- a/nixos/profiles/services/knot/primary.nix +++ b/nixos/profiles/services/knot/primary.nix @@ -135,7 +135,7 @@ in file = pkgs.writeText "db.link.rebmit" ( import ../../../../zones/rebmit.link.nix { inherit (inputs) dns; - inherit lib; + inherit lib config; } ); } @@ -144,7 +144,7 @@ in file = pkgs.writeText "db.moe.rebmit" ( import ../../../../zones/rebmit.moe.nix { inherit (inputs) dns; - inherit lib; + inherit lib config; } ); } diff --git a/zones/rebmit.moe.nix b/zones/rebmit.moe.nix index 79aff23..3e30cc2 100644 --- a/zones/rebmit.moe.nix +++ b/zones/rebmit.moe.nix @@ -1,4 +1,9 @@ -{ dns, lib, ... }: +{ + dns, + lib, + config, + ... +}: with dns.lib.combinators; let common = import ./common.nix; @@ -22,6 +27,20 @@ dns.lib.toString "rebmit.moe" { ]; } ]; + SRV = [ + { + service = "imaps"; + proto = "tcp"; + port = config.networking.ports.imap-tls; + target = "suwako-vie0.rebmit.link."; + } + { + service = "submissions"; + proto = "tcp"; + port = config.networking.ports.smtp-tls; + target = "suwako-vie0.rebmit.link."; + } + ]; MX = with mx; [ (mx 10 "suwako-vie0.rebmit.link.") ]; TXT = [ (with spf; soft [ "mx" ]) ]; subdomains = {