Yes, this is spinning up a VM, running a Docker host with the esp-idf Docker image inside of it, then extracting the relevant part of the filesystem from it, into the target directory, and patching the binaries so that they work on NixOS
... as a build step