Honestly just get a fairphone. They are repairable, the work well with custom roms and their devs even contribute drivers straight to the linux kernel so the support for proper linux on those phones is great too. You won’t find more freedom than that on a phone.