I’m planning to build a computer primarily for programming and want to ensure it’s upgradeable for the future.
and Hardware with opensource drivers support.
I mean you can program on a potato, so what would be your programming need? Something specific you want to get into?
Yes Hardware Firewalls exist, but those are primarily infrastructure and not part of a computer.
If all you want to do is program on that rig, then maybe consider an integrated GPU solution so you don't have to invest in a overpriced Graphics card.
When you care about security and privacy you probably want to run a Linux distribution/BSD instead of Windows? Or do you want Apple (as then this discussion would be superfluous anyway)
I currently have a HP laptop with decent hardware with void linux. The problem is i cannot repair or upgrade that laptop apart of ram and HDD. I want to upgrade or repair on my own.
I have a question, what are you exactly seeking to repair?, like if you have a good working laptop, and if it gives good performance, then there may not be much need of repairing. One of the reasons for getting repairable hardware is that they last long, like I have laptops which are 13 and 7 years old, and they both "work", batteries are dead, and replacements are not good, but other than that fine machines. If your laptop is not very flimsy, you may not even need an upgrade for a long time.