There's even a product that lets you retrofit an old iPod with a modern motherboard
https://certainthings.studio/sprout