cluster/m/m/base: chronyd: enable rtc sync, aggresively step

Change-Id: I61827ec2c77e79ce3e394eb2574372d3c21394d8
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1765
Reviewed-by: q3k <q3k@hackerspace.pl>
master
implr 2023-11-03 01:45:56 +01:00 committed by implr
parent 18c27aedca
commit b37b70cbd4
1 changed files with 13 additions and 1 deletions

View File

@ -101,7 +101,19 @@ in {
systemd.services.nixos-upgrade.path = [ pkgs.git ];
# Use Chrony instead of systemd-timesyncd
services.chrony.enable = true;
services.chrony = {
enable = true;
# cockroach will refuse to start up at error>500ms, so let's just step
# aggresively so it's correct ASAP
initstepslew = {
enabled = true;
threshold = 1;
};
extraConfig = ''
rtcfile /var/lib/chrony/rtc
rtcautotrim 10
'';
};
# Symlink lvm into /sbin/lvm on activation. This is needed by Rook OSD
# instances running on Kubernetes.