I don't know whether the iMac will work with the mini. It all depends on the models of each. Others on this forum will be able to help if you specify exactly what iMac you have.
Regarding the performance of the M2 mini . . . I bought the very lowest priced model last October and have not been disappointed.
Experts will tell you that it needs more RAM and the 256 GB SSD is too small.
Yes, the SSD is too small and for an extra £200 you can get a 500 GB drive but you don't need to do that.
Simply buy a cheap USB 3.0 1 TB SSD for around £60!
As for 8 GB RAM not being enough . . . that is complete baloney! I edit complex 1080p and 4K videos on Final Cut Pro with no problems at all. I would add that if you are a busy professional editing all day long it would be wise to get a more powerful machine as time is money but I don't think you are in that category.
There are only 2 USB 3.0 sockets but again that's no problem as you can buy a 4 socket hub for £10.
In conclusion, the M2 mini does everything at least twice as fast as my 2017 27" iMac, which is also pretty fast.
