This is based on moltengamepad:
https://gitlab.com/AllMeatball/moltengamepad
The project is not particularly well maintained anymore and getting it working is a project in and of itself but once it's up and running and you have it configured properly it works well
I first tried this with an aftermarket wiimote and got nowhere, I suggest finding an OEM wiimote if you want to replicate my setup
This is the latest of many steps to make the "drive my TV with a dedicated Linux PC" experience pleasant. The outcome is pretty comfy. This box is a decent gaming PC for steam big picture mode with some wireless xbox one controllers to drive that, runs a few emulators pretty well (ryujinx, dolphin, pcsx2), it's a seedbox running Kodi and Jellyfin -- Kodi is the least reliable part of this setup. Bluetooth keyboard and wiimote mouse are the latest updates and it's pretty comfy