Switches to dnsmasq
This commit is contained in:
parent
f4c79de982
commit
856b6baaba
|
@ -40,18 +40,16 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
services.dhcpd4 = {
|
services.dnsmasq = {
|
||||||
enable = true;
|
enable = true;
|
||||||
interfaces = [ "wlan0" ];
|
settings = {
|
||||||
extraConfig = ''
|
interface = [ "wlan0" ];
|
||||||
option subnet-mask 255.255.255.0;
|
dhcp-range = [ "192.168.24.100,192.168.24.200" ];
|
||||||
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;
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedUDPPorts = [ 67 ];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
git btop tmux
|
git btop tmux
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue