summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2023-06-16 19:12:33 +0200
committerGitHub <noreply@github.com>2023-06-16 19:12:33 +0200
commit701e37f027cda2e84868c38b5f010e3d35f023a4 (patch)
treed4d5ed17408999414c4427ea0b2ba378bd338103 /modules
parentc192f97d59acb878fd1f2f6f362c8632d1e8426e (diff)
parente6b2332afa4d70c46ee166fc8819f61d3d9b8fca (diff)
Merge pull request #253 from SuperSandro2000/systemd-timesyncd
Enable systemd-timesyncd to prevent clock drift
Diffstat (limited to 'modules')
-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 4a6ab3a..be9623a 100644
--- a/modules/wsl-distro.nix
+++ b/modules/wsl-distro.nix
@@ -132,8 +132,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.