dotfiles/nixos/systems/hela/hostapd.nix
magic_rb 9e5403d774
Get very initial AP up
Signed-off-by: magic_rb <magic_rb@redalder.org>
2024-09-20 22:00:22 +02:00

65 lines
1.4 KiB
Nix

{
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";
};
};
};
};
}