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.
This commit is contained in:
Berwn
2026-06-14 15:02:34 +07:00
parent 91578a2b43
commit 306a2cf61e
3 changed files with 8 additions and 1 deletions
+2 -1
View File
@@ -3,5 +3,6 @@
]; ];
# New machine! time.timeZone = "Etc/GMT-3"; # UTC+3 (fixed offset, no DST)
services.timesyncd.enable = true;
} }
+3
View File
@@ -7,6 +7,9 @@ in
../../modules/dns/authoritative.nix ../../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 # ns1 = primary (master): holds each master zone file, notifies ns2 and
# allows it to pull the zone via AXFR/IXFR. # allows it to pull the zone via AXFR/IXFR.
services.knot.settings.zone = map (d: { services.knot.settings.zone = map (d: {
+3
View File
@@ -7,6 +7,9 @@ in
../../modules/dns/authoritative.nix ../../modules/dns/authoritative.nix
]; ];
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. # ns2 = secondary (slave): pulls every zone from ns1 and accepts its NOTIFY.
services.knot.settings.zone = map (d: { services.knot.settings.zone = map (d: {
domain = d; domain = d;