mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-02 13:06:11 +01:00
9e5403d774
Signed-off-by: magic_rb <magic_rb@redalder.org>
65 lines
1.4 KiB
Nix
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";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|