Files
cnx-network-clan/machines/ns1/configuration.nix
T
Berwn 306a2cf61e Set per-machine timezones and enable NTP
control and ns2 use UTC+3 (Etc/GMT-3), ns1 uses UTC+1 (Etc/GMT-1) —
fixed offsets, no DST. Make systemd-timesyncd explicit on all three.
2026-06-14 15:02:34 +07:00

24 lines
580 B
Nix

{ ... }:
let
domains = import ../../modules/dns/domains.nix;
in
{
imports = [
../../modules/dns/authoritative.nix
];
time.timeZone = "Etc/GMT-1"; # UTC+1 (fixed offset, no DST)
services.timesyncd.enable = true;
# ns1 = primary (master): holds each master zone file, notifies ns2 and
# allows it to pull the zone via AXFR/IXFR.
services.knot.settings.zone = map (d: {
domain = d;
file = ../../modules/dns/zones + "/${d}.zone";
"zonefile-load" = "whole";
"zonefile-sync" = "-1";
notify = [ "ns2" ];
acl = [ "acl_ns2" ];
}) domains;
}