This is a way to mount a 40mm fan to a Raspberry Pi CM4. The fan mounting holes are sized for M3 heat set inserts, but they're overkill for this project and are easily changed in the included SCAD file. The heat sink I'm using is this one from Amazon (not an affiliate link).
I made this for the BTT Manta M8P on my Voron. If you use a 5v 40mm fan, you can just use the 5v / GND headers right beside the CM4.
The SCAD file makes use of the BOSL2 library.
The author marked this model as their own original creation.