aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2019-09-03 00:42:24 +0900
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2019-09-08 23:15:29 +0900
commit08b4a10fa6bc535cd99d65f0233dd027153878eb (patch)
tree9d5d2da7d6a8806e43eb82b2684877ebc3819d1e
parent861b9a365b2a56d70012c9b573b1a3d953601257 (diff)
downloadguix-08b4a10fa6bc535cd99d65f0233dd027153878eb.tar
guix-08b4a10fa6bc535cd99d65f0233dd027153878eb.tar.gz
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.
-rw-r--r--doc/guix.texi2
-rw-r--r--gnu/services/networking.scm2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 51429d8964..fdfcdde258 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -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.
diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm
index 376b4ccc4e..e149fe0b69 100644
--- a/gnu/services/networking.scm
+++ b/gnu/services/networking.scm
@@ -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