about summary refs log tree commit diff
path: root/hosts
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-04-15 13:48:27 -0700
committerFranck Cuny <franck@fcuny.net>2023-04-15 13:48:27 -0700
commit486c75059c5f007a701a8e0cdea7f79a3491bda5 (patch)
tree8398b618927ddbc59314343c1772892c47b52582 /hosts
parenthosts/carmel: don't release DHCP lease on wan interface (diff)
downloadworld-486c75059c5f007a701a8e0cdea7f79a3491bda5.tar.gz
hosts/carmel: start dnsmasq once network interfaces are online
Diffstat (limited to 'hosts')
-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 ];