diff --git a/configuration.nix b/configuration.nix index db96ce9..08cb62a 100644 --- a/configuration.nix +++ b/configuration.nix @@ -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; [ diff --git a/platforms/melodypond.nix b/platforms/melodypond.nix index 86cc5a3..6dd102a 100644 --- a/platforms/melodypond.nix +++ b/platforms/melodypond.nix @@ -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" ]; + }; + }; }