From 486c75059c5f007a701a8e0cdea7f79a3491bda5 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 15 Apr 2023 13:48:27 -0700 Subject: hosts/carmel: start dnsmasq once network interfaces are online --- hosts/carmel/services.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'hosts/carmel') 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 ]; -- cgit 1.4.1