From 5c4004e1b83bd41bf4d2a47fd50b5b18d5f4eb7c Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Wed, 29 Oct 2025 21:16:49 +0000 Subject: [PATCH] add readiness support for ntp --- modules/ntp/service.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 + ''; }