Passing environment variables to config-opts

For the Qt 6 SDK, I’d need to have something like:

            "config-opts": "-DINSTALL_LIBDIR=/usr/lib/${FLATPAK_ARCH}-linux-gnu",

Does anyone know what would be the right way of doing so?