I am trying to configure a Kali install on a headless raspberry pi 4 to connect to the wifi network automagically after a reboot. I recall doing it a year or so ago and the process seemed relatively trivial. For some reason, now that I am trying it again, I can't get it to work. I've tried good'ol RTFM and multiple solutions posted on the interwebs to no avail.
Has anyone done this recently and could they outline the steps or point me to a link that does?
TIA, /mat
Additional information:
Here are some things I have tried but failed:
- kalipi-config -> Network options (basically, raspi-config)
 - setting wpa_supplicant by hand
 - Null byte's description at: https://null-byte.wonderhowto.com/how-to/set-up-headless-raspberry-pi-hacking-platform-running-kali-linux-0176182/
 - https://medium.com/@defsecone/kali-linux-installation-on-headless-raspberry-pi-1856d9c61983
 
One odd behavior I noticed is that if I configured wpa_supplicant.conf by hand with the wifi credentials, the raspberry pi would connect to wifi after reboot if it was also connected via ethernet. If I tried rebooting and disconnecting ethernet, the wifi would not connect.
Also, I started with a clean install each time I tried an attempt. I figured one of these should have worked.