Get at least the recommended specs for your important (heavier) apps, and get no less than a middling model Mac with more memory and more storage than your current usage trends.
Given your current hardware, likely options are Mac mini M4 with your own peripherals and your own 4K or 5K display, or an iMac with the one-size fits all 24” display, whatever Mac with 16 to 24 GB memory minimally, and, again, whatever fits with your current memory and storage trends.
Also check how many USB-A, USB-C, HDMI, 3.5mm audio, and/or Thunderbolt ports are needed both now, and your trend.
You’ll probably want a hard disk of two to three times the size of your internal storage for Time Machine backups, or a NAS with Time Machine server support if you have the budget and the usage requirements for that. Or you can repurpose the existing iMac as a NAS, with sufficient external storage added.
One other detail: M-class processors and Apple main storage are stupidly fast. Picking a top-spec iMac 2020 i9 ten-core, Geekbench has 1644 single-core and 8800 multi-core, while the iMac 2024 M4 low-spec 8-core is 3749 and 14076. Very nearly double the performance, and in ~four years.
MacRumours has a guide to the Apple product release cycles here: https://buyersguide.macrumors.com/#mac
PS: I am amused by the “as you can afford” recommendations here though, as that might well sell some few folks here on a fully loaded Mac Pro, and a low-spec mini for the rest of us, dear reader. And Apple has as many salable variations available as different buyers have available cash. 😉