iwctl
Use iwctl to connect to wifi Enable DHCP
echo "[General]\nEnableNetworkConfiguration=true" > /etc/iwd/main.conf
systemctl start iwd.service
Configure connection:
iwctl device device show
iwctl station wlan0 scan
iwctl station wlan0 get-networks
iwctl --passphrase $(gopass show --password moewe-privat/wlan/moewe/casita) \
station wlan0 connect casita