From a3fdc2e8e993a8349621c43cca042fd3f82d3741 Mon Sep 17 00:00:00 2001 From: David Moody <63956662+David-Moody@users.noreply.github.com> Date: Tue, 18 Nov 2025 22:43:55 +0000 Subject: [PATCH] Remove default NTP servers --- modules/wsl-distro.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/wsl-distro.nix b/modules/wsl-distro.nix index 8b74377c8..5dcadfeda 100644 --- a/modules/wsl-distro.nix +++ b/modules/wsl-distro.nix @@ -219,6 +219,7 @@ in # WSL expects Chrony to be at /sbin/chrony and read /etc/chrony, ours does neither, so recreate the setup (mostly) # The really important bit is the refclock - otherwise the clock runs ahead randomly. # https://github.com/microsoft/WSL/blob/2eac1dafeca0d88320ff2260c5d5fe5dbb09cd33/src/linux/init/main.cpp#L3796 + # By default we shouldn't use the NixOS NTP servers since the clock is set by WSL. services.chrony = { enable = true; extraConfig = '' @@ -226,6 +227,7 @@ in leapsectz right/UTC refclock PHC /dev/ptp0 poll 3 dpoll -2 offset 0 ''; + servers = mkDefault [ ]; }; warnings = flatten [