diff --git a/hosts/zackbiene/dnsmasq.nix b/hosts/zackbiene/dnsmasq.nix index 59ae637..4208369 100644 --- a/hosts/zackbiene/dnsmasq.nix +++ b/hosts/zackbiene/dnsmasq.nix @@ -2,18 +2,20 @@ services.dnsmasq = { enable = true; resolveLocalQueries = false; - extraConfig = '' - interface=wlan1 + settings = { + interface = "wlan1"; + dhcp-authoritative = true; + dhcp-range = [ + "10.0.90.10,10.0.90.240,24h" + "fd90::10,fd90::ff0,24h" + ]; - dhcp-authoritative - dhcp-range=10.0.90.10,10.0.90.240,24h - dhcp-range=fd90::10,fd90::ff0,24h - - enable-ra + # Enable ipv6 router advertisements + enable-ra = true; + # Don't use anything from /etc/resolv.conf + no-resolv = true; # Never forward addresses in the non-routed address spaces. - bogus-priv - - no-resolv - ''; + bogus-priv = true; + }; }; }