nixos/nsd: After/Want network-online.target

This is required in the case one uses nsd as a primary name server.
Otherwise, the nsd instance cannot notify the secondary name servers
properly, as the network may still be unreachable by that point.
This commit is contained in:
Clara Engler
2026-07-17 00:05:18 +02:00
parent 51f9499923
commit a4805bc6c9
+2 -1
View File
@@ -988,8 +988,9 @@ in
systemd.services.nsd = {
description = "NSD authoritative only domain name service";
after = [ "network.target" ];
after = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ];
wants = [ "network-online.target" ];
startLimitBurst = 4;
startLimitIntervalSec = 5 * 60; # 5 mins