From 856b6baaba303ed3c79e1240ac9fc91916573923 Mon Sep 17 00:00:00 2001 From: Bailey Stevens Date: Fri, 29 Sep 2023 16:21:52 -0400 Subject: [PATCH] Switches to dnsmasq --- configuration.nix | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/configuration.nix b/configuration.nix index 5c4640a..db96ce9 100644 --- a/configuration.nix +++ b/configuration.nix @@ -40,18 +40,16 @@ ''; }; - services.dhcpd4 = { + services.dnsmasq = { enable = true; - interfaces = [ "wlan0" ]; - extraConfig = '' - option subnet-mask 255.255.255.0; - option broadcast-address 192.168.24.255; - subnet 192.168.24.0 netmask 255.255.255.0 { - range 192.168.24.100 192.168.24.200; - } - ''; + settings = { + interface = [ "wlan0" ]; + dhcp-range = [ "192.168.24.100,192.168.24.200" ]; + }; }; + networking.firewall.allowedUDPPorts = [ 67 ]; + environment.systemPackages = with pkgs; [ git btop tmux ];