SSH:
Create a empty file in the root of boot partition named "ssh"
(no extension).
touch /mnt/boot/ssh
USER:
Create hashed password with
echo 'password' | openssl passwd -6 -stdin
Create a file in the root of boot partition named "userconf"
(no extension)
echo 'pi:hashed-password' >> /mnt/boot/userconf
WIFI:
Create a file in the root of boot partition named "wpa_supplicant.conf" with the following content
country=CZ
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="NETWORK-NAME"
psk="NETWORK-PASSWORD"
}