nixos-config/zones/rebmit.link.nix

26 lines
462 B
Nix
Raw Normal View History

2024-12-15 22:33:35 +08:00
{ dns, lib, ... }:
with dns.lib.combinators;
let
common = import ./common.nix;
hosts = lib.filterAttrs (_name: value: value.endpoints != [ ]) common.hosts;
in
dns.lib.toString "rebmit.link" {
inherit (common)
TTL
SOA
NS
;
subdomains = builtins.mapAttrs (_name: value: {
A = value.endpoints_v4;
AAAA = value.endpoints_v6;
HTTPS = [
{
alpn = [
"h3"
"h2"
];
}
];
}) hosts;
}