OpenWrt has a generic x86 PC build that can also be used to turn basically any random PC into a router, complete with an operating system actually designed and developed for that purpose.
There are steps in the middle :)
I'm running OpenWRT on the recent WRT3200ACM and it's going beautifully.
Though you'd still need a switch or two. And a fiber modem which already has a router and a switch built-it. Oops.
https://openwrt.org/docs/guide-user/installation/openwrt_x86