I’m having trouble with my Wi-Fi. When I use command line tools like nmcli
or nmtui
to connect to Wi-Fi in the sway window manager, it says Wi-Fi network not found
. However, when I’m using KDE, even though the command line tools still don’t work, I can connect to Wi-Fi directly through KDE settings. Here’s the status of the NetworkManager.service
:
Loaded: loaded (/etc/systemd/system/NetworkManager.service; enabled; preset: enabled)
Drop-In: /nix/store/lrpj1rpa1x128538ldk2vy2c5xc4nmxg-system-units/NetworkManager.service>
└─NetworkManager-ovs.conf, overrides.conf
Active: active (running) since Sat 2023-09-09 22:37:01 EDT; 17min ago
Docs: man:NetworkManager(8)
Main PID: 865 (NetworkManager)
IP: 9.6K in, 894B out
IO: 10.1M read, 88.0K written
Tasks: 4 (limit: 19072)
Memory: 14.3M
CPU: 1.928s
CGroup: /system.slice/NetworkManager.service
└─865 /nix/store/3m1cl7q6p0kxjj8aa6700dzdk7qqq5xh-networkmanager-1.42.8/sbin/Ne>
Sep 09 22:51:47 nixos NetworkManager[865]: <warn> [1694314307.0871] device (wlp3s0): Activa>
Sep 09 22:51:47 nixos NetworkManager[865]: <warn> [1694314307.0879] platform-linux: do-chan>
Sep 09 22:51:47 nixos NetworkManager[865]: <warn> [1694314307.0883] device (wlp3s0): Activa>
Sep 09 22:51:50 nixos NetworkManager[865]: <warn> [1694314310.9817] platform-linux: do-chan>
Sep 09 22:53:40 nixos NetworkManager[865]: <warn> [1694314420.7303] platform-linux: do-chan>
Sep 09 22:53:40 nixos NetworkManager[865]: <warn> [1694314420.8076] platform-linux: do-chan>
Sep 09 22:54:06 nixos NetworkManager[865]: <warn> [1694314446.0870] device (wlp3s0): Activa>
Sep 09 22:54:06 nixos NetworkManager[865]: <warn> [1694314446.0877] platform-linux: do-chan>
Sep 09 22:54:06 nixos NetworkManager[865]: <warn> [1694314446.0882] device (wlp3s0): Activa>
Sep 09 22:54:09 nixos NetworkManager[865]: <warn> [1694314449.9434] platform-linux: do-chan>
These are the logs for the NetworkManager service from journalctl.
I also attempted to use wpa_supplicant
and set up my Wi-Fi networks declaratively, but the issue continues. With wpa_supplicant
, the Wi-Fi connection isn’t even visible, although I can still connect through Ethernet. Here are the journal logs for wpa_supplicant.
Here is my wpa_supplicant
section in configuration.nix
file:
# enable wpa_supplicant
66 │ networking.wireless.enable = true;
67 │ networking.wireless.networks = {
68 │
69 │ "134Fennel" = { # SSID with no spaces or special characters
70 │ psk = "132Eennel";
71 │ priority = 2;
72 │ };
73 │
74 │ "Mohawk-WiFi" = {
75 │ priority = 2;
76 │ auth =
77 │ ''
78 │ eap=PEAP
79 │ identity="userID"
80 │ password="mypassword"
81 │ '';
82 │ extraConfig =
83 │ ''
84 │ phase2="auth=MSCHAPV2"
85 │ '';
86 │ };
87 │ };
NixOS System:
- system:
"x86_64-linux"
- host os:
Linux 6.1.51, NixOS, 23.11 (Tapir), 23.11pre522946.0bffda19b8af
- multi-user?:
yes
- sandbox:
yes
- version:
nix-env (Nix) 2.17.0
- channels(root):
"nixos"
- nixpkgs:
/nix/var/nix/profiles/per-user/root/channels/nixos