about summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--hosts/carmel/services.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/hosts/carmel/services.nix b/hosts/carmel/services.nix
index 57033dc..7a1d833 100644
--- a/hosts/carmel/services.nix
+++ b/hosts/carmel/services.nix
@@ -55,6 +55,13 @@
     '';
   };
 
+  # dnsmasq needs the interfaces to be online
+  # https://serverfault.com/a/907603
+  systemd.services.dnsmasq = {
+    after = [ "network-online.target" "network.target" ];
+    wants = [ "network-online.target" ];
+  };
+
   # DNS / DHCPv4 / DHCPv6
   networking.firewall.allowedUDPPorts = [ 53 67 547 ];