Moves WiFi to pi-specific config file.

This commit is contained in:
Bailey Stevens 2023-09-29 16:26:43 -04:00
parent 856b6baaba
commit c1b7e623e8
2 changed files with 26 additions and 26 deletions

View file

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

View file

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