Skip to content

Commit c534cd1

Browse files
committed
fix: hardcode timeservers
Signed-off-by: Anthony Rabbito <hello@anthonyrabbito.com>
1 parent bc8b9be commit c534cd1

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

modules/nixos/router.nix

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,6 +1490,20 @@ in {
14901490
};
14911491
};
14921492

1493+
# Use IP-based NTP servers so timesyncd can sync the clock without
1494+
# waiting for DNS (dnscrypt-proxy). This breaks the boot-time deadlock
1495+
# where the wrong hardware clock (e.g. after power loss) prevents TLS
1496+
# cert validation, which blocks DNS, which blocks NTP.
1497+
services.timesyncd = {
1498+
enable = true;
1499+
servers = [
1500+
"162.159.200.1" # time.cloudflare.com
1501+
"162.159.200.123" # time.cloudflare.com
1502+
"216.239.35.0" # time.google.com
1503+
"216.239.35.4" # time.google.com
1504+
];
1505+
};
1506+
14931507
systemd.tmpfiles.rules =
14941508
[
14951509
"d /var/lib/bind 0775 named named -"

0 commit comments

Comments
 (0)