That's my /etc/network/interfaces
In /etc/dhcpcd.conf I've added these lines:# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto wlan0
iface lo inet loopback
# allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet static
address 192.168.1.23
netmask 255.255.255.0
gateway 192.168.1.1
And my /etc/wpa_supplicant/wpa_supplicant.conf look like that:interface wlan0
static ip_address=192.168.1.23/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1 8.8.8.8
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=SK
network={
ssid="myssid"
psk="mypass"
key_mgmt=WPA-PSK
}