Moves WiFi to pi-specific config file.
This commit is contained in:
parent
856b6baaba
commit
c1b7e623e8
|
@ -22,32 +22,6 @@
|
|||
windowManager.fluxbox.enable = true;
|
||||
};
|
||||
|
||||
networking.interfaces.wlan0 = {
|
||||
useDHCP = false;
|
||||
ipv4.addresses = [{
|
||||
address = "192.168.24.1";
|
||||
prefixLength = 24;
|
||||
}];
|
||||
};
|
||||
|
||||
services.hostapd = {
|
||||
enable = true;
|
||||
interface = "wlan0";
|
||||
ssid = "mmelodies";
|
||||
wpaPassphrase = "myPhyzzySounds";
|
||||
extraConfig = ''
|
||||
ignore_broadcast_ssid=0
|
||||
'';
|
||||
};
|
||||
|
||||
services.dnsmasq = {
|
||||
enable = true;
|
||||
settings = {
|
||||
interface = [ "wlan0" ];
|
||||
dhcp-range = [ "192.168.24.100,192.168.24.200" ];
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedUDPPorts = [ 67 ];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
|
|
@ -24,4 +24,30 @@
|
|||
];
|
||||
|
||||
networking.hostName = "melodypond";
|
||||
|
||||
networking.interfaces.wlan0 = {
|
||||
useDHCP = false;
|
||||
ipv4.addresses = [{
|
||||
address = "192.168.24.1";
|
||||
prefixLength = 24;
|
||||
}];
|
||||
};
|
||||
|
||||
services.hostapd = {
|
||||
enable = true;
|
||||
interface = "wlan0";
|
||||
ssid = "mmelodies";
|
||||
wpaPassphrase = "myPhyzzySounds";
|
||||
extraConfig = ''
|
||||
ignore_broadcast_ssid=0
|
||||
'';
|
||||
};
|
||||
|
||||
services.dnsmasq = {
|
||||
enable = true;
|
||||
settings = {
|
||||
interface = [ "wlan0" ];
|
||||
dhcp-range = [ "192.168.24.100,192.168.24.200" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue