Framework = espidf, arduino with custom variant/board

I am porting a esp32s3 project from framework = arduino to framework = espidf, arduino. Before I provided my own pins_arduino.h but this framework looks one up based on a menuconfig “variant” setting. But I want to chose my own definition for these pins. Does anyone have a way of doing that better than adding a directory to .platformio\packages\framework-arduinoespressif32\variants\?