I would like to make my own android TV setup. What’s the best way to do this? I’d like to have it as FOSS as possible.

Is it possible to do this on an x86 mini pc? That would be ideal, but I could also get an arm mini pc. I’d rather the setup not be specific to a device, like raspberry pi.