summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/wsl-distro.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/wsl-distro.nix b/modules/wsl-distro.nix
index 22a5a23..fd0c6e2 100644
--- a/modules/wsl-distro.nix
+++ b/modules/wsl-distro.nix
@@ -135,8 +135,8 @@ in
services = {
firewall.enable = false;
systemd-resolved.enable = lib.mkDefault false;
- # system clock cannot be changed
- systemd-timesyncd.enable = false;
+ # systemd-timesyncd actually works in WSL and without it the clock can drift
+ systemd-timesyncd.unitConfig.ConditionVirtualization = "";
};
# Don't allow emergency mode, because we don't have a console.