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";
|
keyFile = "${stateDir}/chrony.keys";
|
||||||
|
|
||||||
configFile = pkgs.writeText "chrony.conf" ''
|
configFile = pkgs.writeText "chrony.conf" ''
|
||||||
${concatMapStringsSep "\n" (server: "server " + server) cfg.servers}
|
${concatMapStringsSep "\n" (server: "server " + server + " iburst") cfg.servers}
|
||||||
|
|
||||||
${optionalString
|
${optionalString
|
||||||
(cfg.initstepslew.enabled && (cfg.servers != []))
|
(cfg.initstepslew.enabled && (cfg.servers != []))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user