From 7b86b4c80077690d2bfeed6211d2b52a596d080d Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Tue, 3 Sep 2019 00:42:24 +0900 Subject: [PATCH 1/4] 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 ()[allow-large-adjustment?]: Set the default value to #t. * doc/guix.texi (Networking Services): Update documentation. --- doc/guix.texi | 2 +- gnu/services/networking.scm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 031ee53295..50f800ef61 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -12990,7 +12990,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 -- 2.23.0