-
$ sudo pacman -S iwd
-
[General] # uncomment for setting the wifi interface name yourself # see https://iwd.wiki.kernel.org/interface_lifecycle #UseDefaultInterface=true # enable builtin DHCP-client within iwd for wifi EnableNetworkConfiguration=true # randomizes mac-address every time iwd starts or the hardware is initially detected AddressRandomization=once
-
$ sudo systemctl enable --now iwd.service
wireless networking with DHCP is now up and running.
-
$ iwctl
-
[iwd]# device list
-
[iwctl] station <devicename> get-networks … [iwctl] station <devicename> connect <network-name>
-
$ iwctl --passphrase passphrase station device connect SSID
-
$ sudo systemctl enable --now systemd-resolved.service
-
$ sudo ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
-
$ sudo systemctl restart systemd-resolved.service