diff options
| author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2023-06-14 16:52:09 +0200 |
|---|---|---|
| committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2023-06-14 16:52:09 +0200 |
| commit | e6b2332afa4d70c46ee166fc8819f61d3d9b8fca (patch) | |
| tree | af656a0d2a0f29f0790bad1bd40efcd956278211 /modules | |
| parent | 4640199aeafcbb63cfbe8318bdf06f4402134f66 (diff) | |
Enable systemd-timesyncd to prevent clock drift
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/wsl-distro.nix | 4 |
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. |
