This is a server/client config file which should work and provide you with a WireGuard VPN.
Please note that on the server you still have to do the normal IP Forwarding configuration, this includes allowing IP masquerading/NAT on the interface. I tend to use this guide: https://wiki.archlinux.org/index.php/Internet_sharing
Enjoy.