Skip to content

Commit

Permalink
Enable systemd-timesyncd to prevent clock drift
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Jun 14, 2023
1 parent 4640199 commit e6b2332
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/wsl-distro.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e6b2332

Please sign in to comment.