Switches to dnsmasq
This commit is contained in:
parent
f4c79de982
commit
856b6baaba
|
@ -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
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue