The new Apple iMacs are great machines, they just need a few more ports and some extra storage. The Satechi USB-C Slim Dock ...
If you have an NVME-to-USB adapter or NVME USB enclosure, use that to connect the drive to your computer. Then, use the Raspberry Pi Imager to install Raspberry Pi OS onto your NVMe SSD.