CoreELEC as a (wireguard) Gateway?

Yes, but here it chokes on ‘shopt’ (see thread).