Depending on the phone, if the phone has a USB-C, you could definitely turn it into a NAS with an external disk caddy and an ethernet connection (usb-c port extenders do that). That said, it'd definitely be cheaper and better user experience to just use something with Linux on it (like an older NUC, openWRT as you say, or something similar).