I set something like this up the other day using ZeroTier rather than Wireguard. Followed the instructions here and it "just worked" https://zerotier.atlassian.net/wiki/spaces/SD/pages/22439527...
The key was enabling IP forwarding, and setting the right iptables rules.