commit 5c4004e1b83bd41bf4d2a47fd50b5b18d5f4eb7c parent 32f0be84bee6874105424fe57d686e1d6f85c1a4 Author: Daniel Barlow <dan@telent.net> Date: Wed, 29 Oct 2025 21:16:49 +0000 add readiness support for ntp Diffstat:
| M | modules/ntp/service.nix | | | 6 | +++++- |
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git 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 + ''; }