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 ];