services: ntp: Allow large adjustment by default.

This is documented as best practice in `man ntpd', and is required to allow
the date to be set correctly when traveling (without having to manually update
the hardware clock in the BIOS/UEFI).

* gnu/services/networking.scm (<ntp-server>)[allow-large-adjustment?]: Set the
default value to #t.
* doc/guix.texi (Networking Services): Update documentation.
master
Maxim Cournoyer 2019-09-03 00:42:24 +09:00
parent 861b9a365b
commit 08b4a10fa6
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
2 changed files with 2 additions and 2 deletions

View File

@ -13050,7 +13050,7 @@ This is the data type for the NTP service configuration.
This is the list of servers (host names) with which @command{ntpd} will be
synchronized.
@item @code{allow-large-adjustment?} (default: @code{#f})
@item @code{allow-large-adjustment?} (default: @code{#t})
This determines whether @command{ntpd} is allowed to make an initial
adjustment of more than 1,000 seconds.

View File

@ -315,7 +315,7 @@ Protocol (DHCP) client, on all the non-loopback network interfaces."
(servers ntp-configuration-servers
(default %ntp-servers))
(allow-large-adjustment? ntp-allow-large-adjustment?
(default #f)))
(default #t))) ;as recommended in the ntpd manual
(define ntp-shepherd-service
(match-lambda