| 26 Oct 2025 |
| NixOS Moderation Bot banned @hennofur839393:matrix.org (spam). | 00:34:35 |
prince213 | Hi, I'd like to kindly request a review on https://github.com/NixOS/nixpkgs/pull/398587 | 05:02:50 |
prince213 | It adds a NixOS module and some tests for FirewallD | 05:03:25 |
| Sir_Morton joined the room. | 15:33:42 |
| 27 Oct 2025 |
clerie | I managed to get Dual-Stack-Lite running under NixOS. If you have any ideas for making it prettier your welcome. Especially dhcpcd is much more in the way than helpful.
https://git.clerie.de/clerie/nixfiles/commit/f3629c2653f311398bfa5fad876b2744ffc66b40
| 20:36:54 |
| 28 Oct 2025 |
| @dawnofmidnight:catgirl.cloud joined the room. | 20:58:55 |
| @kraynyan:tchncs.de left the room. | 23:56:27 |
| 29 Oct 2025 |
| danishsouls joined the room. | 15:51:50 |
crushing-smite | Wireless chip is MT7922. And here's my wireless.nix:
{
config,
lib,
pkgs,
...
}: {
boot.extraModprobeConfig = ''
options cfg80211 ieee80211_regdom="DE"
'';
hardware.wirelessRegulatoryDatabase = true;
services.hostapd = {
enable = true;
radios."wlp5s0" = {
settings.ieee80211h = lib.mkForce false;
wifi5 = {
enable = true;
operatingChannelWidth = "20or40";
require = true;
};
countryCode = "DE";
channel = 36;
band = "5g";
networks.wlp5s0 = {
logLevel = 1;
ssid = "SsidName";
authentication = {
mode = "wpa3-sae";
saePasswords = [
{ password = "Password"; }
];
enableRecommendedPairwiseCiphers = true;
};
settings = {
bridge = "br0";
beacon_int = 50;
};
};
};
};
}
Issues:
- Only Linux and MacOS clients can connect to this network. iOS 18 and Windows 11, both obviously supporting Wifi5, cannot connect to it - it is visible in the list of networks, but both fail upon connection try.
- On Linux and MacOS, it takes some time for network to become visible in the list. On Linux via
nmcli dev wifi list it may take even a minute or two for it to show up. This is not a recurring issue, but it happens about 1/3 of all the times.
- I could not switch
operatingChannelWidth = "20or40"; to 80 - I can apply the option, the system rebuilds and boots fine, network is visible and allows to connect to, there is WAN, but network itself is still 20 MHz (not even 40), as confirmed by both cat /run/hostapd/wlp5s0.hostapd.conf on router (output below) and wavemon on Linux client (reports width: 20 MHz). Please also mind ht_capab and vht_capab (looks suspisious to me).
[root@nixos:~]# cat /run/hostapd/wlp5s0.hostapd.conf
# Radio base configuration: wlp5s0
################################
channel=36
country_code=DE
driver=nl80211
ht_capab=[HT40][SHORT-GI-20][SHORT-GI-40]
hw_mode=a
ieee80211ac=1
ieee80211d=1
ieee80211h=0
ieee80211n=1
noscan=0
require_ht=0
require_vht=1
vht_capab=
vht_oper_chwidth=0
# BSS 0: wlp5s0
################################
interface=wlp5s0
ap_isolate=0
auth_algs=1
beacon_int=50
bridge=br0
ctrl_interface=/run/hostapd
ctrl_interface_group=wheel
ieee80211w=1
ignore_broadcast_ssid=0
logger_stdout=-1
logger_stdout_level=1
logger_syslog=-1
logger_syslog_level=1
macaddr_acl=0
rsn_pairwise=CCMP GCMP GCMP-256
sae_pwe=2
sae_require_mfp=1
ssid=SsidName
transition_disable=0x01
utf8_ssid=1
wmm_enabled=1
wpa=2
wpa_key_mgmt=SAE
wpa_pairwise=CCMP GCMP GCMP-256
sae_password=password
| 21:09:23 |
crushing-smite | Now, how to troubleshoot/which other info do you need? | 21:09:39 |
K900 | Check hostapd logs for when your clients fail to associate | 21:13:50 |
crushing-smite | brb | 21:13:57 |
K900 | Also depending on the hardware Windows especially can be iffy about WPA3-only APs | 21:14:23 |
crushing-smite | Nothin in there | 21:15:01 |
crushing-smite | Tried from WIn 11, which says "Can't connect to this network", but nothing new via journalctl -u hostapd --follow | 21:15:27 |
K900 | You probably want to set the log level to 0 | 21:15:44 |
crushing-smite | remind me how to please | 21:16:02 |
crushing-smite | and would ir trequire a rebuild/reboot | 21:16:07 |
K900 | Rebuild and hostapd restart | 21:16:17 |
K900 | There's an option | 21:16:19 |
K900 | I forgot what it is exactly | 21:16:24 |
K900 | Also, wlp5s0 looks like running an AP off a desktop/laptop? Which means it's very possible your wireless chip just doesn't support AP operation at higher rates | 21:17:08 |
K900 | That is fairly normal | 21:17:38 |
K900 | Especially for not-latest hardware | 21:17:45 |
K900 | Intel chips are also very picky about how they'll operate in AP mode on top of normal regulatory restrictions for whatever reason | 21:18:31 |
crushing-smite | What do you mean a running of laptop/desktop? It is MT7922 which was suggested by you 2 or so years ago specifically for AP purposes, and it is inside a standalone router (NUC-like). It supports Wifi6/7 too. | 21:20:37 |
K900 | I mean not an actual AP designed to operate as an AP | 21:21:07 |
K900 | But yes MT7922 should be able to run at those rates | 21:21:18 |
crushing-smite | nixos-rebuid boot + systemctl restart hostapd, or nixos-rebuild switch (latter would require a reboot)? | 21:21:27 |
crushing-smite | elaborate please | 21:21:36 |