From 5197842329d5153bc5a3ace63bd7e7d9dc97c83c Mon Sep 17 00:00:00 2001 From: r-vdp Date: Sun, 31 May 2026 20:08:04 +0300 Subject: [PATCH] nixos/systemd: ship time-set.target time-sync.target has Wants/After=time-set.target, every OnCalendar= timer gains an implicit After=time-set.target, and systemd.special(7) documents it as the hook for "system clock has been set from a local source". Without the unit file the target is not-found, so WantedBy=time-set.target on third-party units is silently ignored and the timer ordering is a no-op. --- nixos/modules/system/boot/systemd.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index 7227ac4277e7..f48256a599a5 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -40,6 +40,7 @@ let "network-online.target" "nss-lookup.target" "nss-user-lookup.target" + "time-set.target" "time-sync.target" "first-boot-complete.target" ]