Switches to dnsmasq

This commit is contained in:
Bailey Stevens 2023-09-29 16:21:52 -04:00
parent f4c79de982
commit 856b6baaba

View file

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