diff --git a/modules/ntp/service.nix b/modules/ntp/service.nix index 7fed389..a850955 100644 --- a/modules/ntp/service.nix +++ b/modules/ntp/service.nix @@ -32,5 +32,9 @@ let in longrun { inherit name; - run = "${chrony}/bin/chronyd -f ${config} -d"; + notification-fd = 10; + run = '' + ( ${chrony}/bin/chronyc waitsync ; echo > /proc/self/fd/10 ) & + ${chrony}/bin/chronyd -f ${config} -d + ''; }