From cae48ede1ba250dffabe948436d2ea83b0c046d7 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Mon, 12 Aug 2024 03:23:34 +0800 Subject: [PATCH] fix: update ntp time servers --- modules/nixos/base/networking.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/nixos/base/networking.nix b/modules/nixos/base/networking.nix index 21670c05..733c2bb0 100644 --- a/modules/nixos/base/networking.nix +++ b/modules/nixos/base/networking.nix @@ -1,4 +1,4 @@ -_: { +{ # Network discovery, mDNS # With this enabled, you can access your machine at .local # it's more convenient than using the IP address. @@ -12,4 +12,10 @@ _: { userServices = true; }; }; + + # Use an NTP server located in the mainland of China to synchronize the system time + networking.timeServers = [ + "ntp.aliyun.com" # Aliyun NTP Server + "ntp.tencent.com" # Tencent NTP Server + ]; }