Extremely slow PHP xDebug and PHPStorm with NixOS

Hi,

I’ve been working with NixOS a few months now and still fighting with xDebug and PHPStorm lagging.
Love NixOS system, but when I was using Ubuntu before, everything run smooth.

Currently writing has delay, everything is laggy in PHPStorm. Not in all system, really only in Storm.

Second think is that xDebug is extremely slow to load page. On Ubuntu with same configuration about 2s, NixOS 20-30s.

Does anyone had same issues?

All runs in Docker compose enviroment. My php.ini config:

memory_limit = 512M
date.timezone = Europe/Prague
max_input_vars = 5000
max_execution_time = 300
realpath_cache_size = 128k
upload_max_filesize = 8M
post_max_size = 9M

xdebug.max_nesting_level = 1000
xdebug.mode = debug
xdebug.start_with_request = yes
xdebug.client_port = 9003
xdebug.idekey=PHPSTORM
xdebug.client_host = 172.17.0.1

#blackfire.agent_socket=tcp://blackfire:8707
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT

openssl.cafile="/etc/ssl/certs/ca-certificates.crt"
xdebug.remote_host = 172.17.0.1

Thank you!!