In case of Raspbian, you can create a wpa_supplicant.conf
in the boot partition with:
network={
ssid="testing"
psk="testingPassword"
}
and a empty ssh
file.
For the user config, since bullseye you need to make an account on first boot, that can be done with a userconf
file, but it's a bit more involved. You can see how to do it at the end of This blog post