I wouldn't recommend Kodi for streaming, it kinda works but the experience isn't great. I use it exclusively for playing stuff from my server full of legally acquired public domain videos (ahem).
I do watch YouTube videos on it, but I use TubeArchivist (basically a fancy wrapper for yt-dlp) to pull them onto the server first, and a script to organise them into nicely-named directories.
I’m using a Minix Z100 running Gnome and Kodi. I use a simple Bluetooth keyboard, the interface is clunky but it does the job. I use Samba to also share files to VNC running on iOS and Android on the same network.
I tried using fancier solutions but anything that browses content without involving directories always break for some specific content in unpredictable ways.
An alternative could be some x86 Android TV build like Lineage, but I have not seen very convincing demonstrations that this is truly viable.
I just think of them as the best solution to run Kodi for media that is on my network.