about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--modules/by-name/dn/dns/module.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/by-name/dn/dns/module.nix b/modules/by-name/dn/dns/module.nix
index 0bb786a..8f4ad37 100644
--- a/modules/by-name/dn/dns/module.nix
+++ b/modules/by-name/dn/dns/module.nix
@@ -73,5 +73,14 @@ in {
     networking.firewall.allowedUDPPorts = lib.mkIf cfg.openFirewall ports;
     networking.firewall.allowedTCPPorts = lib.mkIf cfg.openFirewall ports;
 
+    systemd.services.nsd = {
+      requires = [
+        "network-online.target"
+      ];
+      after = [
+        "network.target"
+        "network-online.target"
+      ];
+    };
   };
 }