mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 21:09:00 +02:00
nixos/chrony: set iburst for ntp servers
'iburst' allows chrony to make very quick adjustments to the clock by doing a couple rapid measurements outside of the default 'minpoll' option. This helps improve rapid time adjustment at boot, and is enabled by default. Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
parent
0aee12e0b3
commit
83180ea41f
|
@ -9,7 +9,7 @@ let
|
|||
keyFile = "${stateDir}/chrony.keys";
|
||||
|
||||
configFile = pkgs.writeText "chrony.conf" ''
|
||||
${concatMapStringsSep "\n" (server: "server " + server) cfg.servers}
|
||||
${concatMapStringsSep "\n" (server: "server " + server + " iburst") cfg.servers}
|
||||
|
||||
${optionalString
|
||||
(cfg.initstepslew.enabled && (cfg.servers != []))
|
||||
|
|
Loading…
Reference in a new issue