nixos/openntpd: Don't start until we have networking

This attempts to fix an issues where ntp is unable to resolve hostnames
because it came up before local nameservers or networking.
This commit is contained in:
William A. Kennington III 2015-02-06 14:45:41 -08:00
parent 67f28ac1a9
commit 9792b12e53

View file

@ -64,6 +64,8 @@ in
systemd.services.openntpd = {
description = "OpenNTP Server";
wantedBy = [ "multi-user.target" ];
wants = [ "network-online.target" ];
after = [ "dnsmasq.service" "bind.service" "network-online.target" ];
serviceConfig.ExecStart = "${package}/sbin/ntpd -d -f ${cfgFile} ${cfg.extraOptions}";
};
};