From c23bac3d84f6aadb3b2dfd1c5891b44f47432e0d Mon Sep 17 00:00:00 2001 From: Tootbrute Date: Fri, 20 Jun 2025 09:38:46 +0800 Subject: [PATCH] added time servers --- configuration.nix | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index 92bbdb4..5ceab19 100644 --- a/configuration.nix +++ b/configuration.nix @@ -85,6 +85,48 @@ # Enable sudo-rs for better security (memory safe, written in Rust). security.sudo-rs.enable = true; + # Localization & Time Zones +services.timesyncd = { + enable = true; + + # NTP servers from around the world + servers = [ + # Canada - Canadian government (CDN NTP Project) + "ntp1.ca" + "ntp2.ca" + "ntp3.ca" + + # Iceland - RHnet (Icelandic University Research Network) + "ntp1.is" + + # Netherlands - SURFnet (Research & Education Network) + "time1.surfnet.nl" + "time2.surfnet.nl" + + # France - Paris Observatory (Observatoire de Paris) + "ntp.obspm.fr" + + # Germany - Physikalisch-Technische Bundesanstalt (PTB) + "ptbtime1.ptb.de" + + # Japan - NICT (National Institute of Information and Communications Technology) + "ntp.nict.jp" + + # South Korea - KRISS (Korea Research Institute of Standards and Science) + "time.kriss.re.kr" + "time.bora.net" + "time.nuri.net" + + # New Zealand - NIWA (National Institute of Water and Atmospheric Research) + "ntp1.niwa.co.nz" + + # Australia - NMI (National Measurement Institute) + "ntp1.nmi.gov.au" + "ntp2.nmi.gov.au" + "ntp3.nmi.gov.au" + ]; + }; + # Set your time zone. time.timeZone = "Asia/Taipei"; @@ -153,7 +195,7 @@ users.users.elias = { isNormalUser = true; description = "elias"; -#ADDED AUDIO GROUP FOR MICROPHONE, DIDN"T HELP + #ADDED AUDIO GROUP FOR MICROPHONE, DIDN"T HELP extraGroups = [ "networkmanager" "wheel" "audio"]; packages = with pkgs; [ # thunderbird