From 6e3cecf1f7efb744eb42fa7f72d799b169256422 Mon Sep 17 00:00:00 2001 From: Poscat Date: Fri, 6 Aug 2021 21:03:55 +0800 Subject: [PATCH] nixos/chrony: wait for dns services to start up before starting --- nixos/modules/services/networking/ntp/chrony.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/ntp/chrony.nix b/nixos/modules/services/networking/ntp/chrony.nix index 96c6444c23a1..a4b17bbbff57 100644 --- a/nixos/modules/services/networking/ntp/chrony.nix +++ b/nixos/modules/services/networking/ntp/chrony.nix @@ -148,7 +148,7 @@ in wantedBy = [ "multi-user.target" ]; wants = [ "time-sync.target" ]; before = [ "time-sync.target" ]; - after = [ "network.target" ]; + after = [ "network.target" "nss-lookup.target" ]; conflicts = [ "ntpd.service" "systemd-timesyncd.service" ]; path = [ chronyPkg ];