You might check out @Jameson Lopp blog. I remember he had a post about building his own router. I don' remember how applicable it is!
Not sure if OpenWRT runs on x86 but I found OPNSense rather user friendly. Related: https://blog.lopp.net/how-to-protect-your-home-network-with-a-gigabit-vpn/