You can get panel mount resistors. They are usually rated at way higher wattage though.
I would probably just heat shrink the resistor. Your harness should be reasonably secure anyway.
I would question why you need a 2.2ohm 1/2w resistor in a harness in the first place though.
It doesn’t usually work that well in practice. I have been running an M1 MBA for the last couple years (asahi Arch and now Asahi Fedora spin). More complex pieces of software typically have build system and dependencies that are not compatible or just make hunting everything down a hassle.
That said there is a ton of software that is available for arm64 on Linux so it’s really not that bad of an experience. And there are usually alternatives available for software that cannot be found.