NetworkManager never asks for the Wi-Fi password on Hyprland
- Field note
NetworkManager does not ask for passwords itself. A secret agent registered on D-Bus does that job. GNOME and Plasma start one for you; a bare Hyprland session starts none, and a status bar that only sends commands to NetworkManager is not an agent.
Saved networks keep working because their PSK is already stored, so the problem only shows up when you join a network for the first time, typically in a café. That makes it look like a driver or hardware fault. The nmtui failure is the tell: the problem is not in any GUI.
The fix
Start an agent with the session:
-- hyprland.lua
hl.exec_cmd("nm-applet") -- needed as the secret agent, not for its iconThen look for the opposite of the error line in the journal:
NetworkManager[...]: agent-manager: agent[...]: agent registeredSide effect
nm-applet also registers a tray icon, so a bar that already shows Wi-Fi now shows two. The --indicator flag did not prevent that here. Hiding the item by its SNI id (nm-applet) in the bar's tray did.