Files
cnx-network-clan/machines/ns2/configuration.nix
T

29 lines
673 B
Nix

{ ... }:
let
domains = import ../../modules/dns/domains.nix;
in
{
imports = [
../../modules/dns/authoritative.nix
../../modules/static-ipv6.nix
];
clan.core.sops.defaultGroups = [ "admins" ];
# Public IPv6 (matches the ns2 AAAA glue); SLAAC doesn't bring it up here.
cnx.staticIPv6 = {
enable = true;
address = "2a01:4f9:c014:6d87::1";
};
time.timeZone = "Etc/GMT-3"; # UTC+3 (fixed offset, no DST)
services.timesyncd.enable = true;
# ns2 = secondary (slave): pulls every zone from ns1 and accepts its NOTIFY.
services.knot.settings.zone = map (d: {
domain = d;
master = [ "ns1" ];
acl = [ "acl_ns1" ];
}) domains;
}