{ pkgs, lib, ... }: { services.hostapd = { enable = true; radios."wlp1s0" = { settings = { vht_oper_centr_freq_seg0_idx = 155; he_oper_centr_freq_seg0_idx = 155; # clients max_num_sta = 250; }; channel = 149; band = "5g"; countryCode = "NL"; wifi4 = { # YES, we need it, for some unknown reasons enable = true; # https://www.rayalto.pro/2023/10/19/n6000-setup-01/#3-2-hostapd capabilities = lib.mkForce [ "LDPC" "HT40+" "HT40-" "GF" "SHORT-GI-20" "TX-STBC" "RX-STBC1" "MAX-AMSDU-7935" ]; }; wifi5 = { enable = true; operatingChannelWidth = "80"; capabilities = [ "RXLDPC" "SHORT-GI-80" "TX-STBC-2BY1" "SU-BEAMFORMEE" "MU-BEAMFORMEE" "RX-ANTENNA-PATTERN" "TX-ANTENNA-PATTERN" "RX-STBC-1" "BF-ANTENNA-4" "MAX-MPDU-11454" "MAX-A-MPDU-LEN-EXP7" ]; }; wifi6 = { enable = true; operatingChannelWidth = "80"; }; networks."wlp1s0" = { ssid = "Magic-Router"; # utf8Ssid = false; authentication = { mode = "wpa2-sha256"; wpaPassword = "you guess, its your mom"; }; }; }; }; }