So, Wireguard can be set as a server in LibreElec and I do not need containers? Or I script in a container? Any pointers to reading material or how to start?
As WireGuard operates at Layer2 and Layer3, there is no higher (Layer) server component/application involved. It is nothing more than a network interface configured from userspace using the wg binary and a config file. The config file contains the public/private keys for communications and configured knowledge of other peer nodes in the mesh network. Once the WireGuard interface is up you can route traffic to/from the interface using normal ip commands. The config file may also have other information used by the wg-quick script (referenced in most HOWTO guides) to create the interface and set routing. LE does not bundle wg-quick as it does not work; it assumes a standard Linux desktop and fails with our read-only OS packaging. However, all wg-quick does is dump some files in /etc/wireguard then run wg and ip commands. If want to know more about it, find a copy on the internet.
In all seriousness, I would start here: https://lmgtfy.com/?q=how+does+wireguard+work%3F - because WireGuard is more like IPSeC than OpenVPN and if you do not understand how it works you will flail around looking for an 'easy' button that doesn't exist (as it is not required). Everything needed is embedded in the OS and /storage is your persistent writeable $home folder, and you can use all the standard Linux tools like systemd services to start things on boot. You can also install containers; but that only adds overhead and the abstraction of containers (most users don't understand those either).