How many steps removed do you draw the line?
Obviously, it's one thing to be a commander ordering an attack, vs a soldier firing the weapon, vs starting the company to make the weapon, vs being a supplier to the weapons company, vs being an employee at the manufacturer, etc.
What about working for a president who is going to inevitably order hundreds if not thousands murdered? Or voting for said president?
What about paying taxes, knowing those tax dollars will go to missiles and guns used to murder?
(This isn't a criticism of your worldview, by the way. I'm just genuinely curious about how others draw these lines.)
Working on "killy" stuff is bad. That's my whole point. I is l stupid and counterproductive to what we as humanity are supposed to be doing.
The line is simple, do you have the choice (personally or influentially) to avoid that? If yes, you draw the line. Can you avoid paying taxes? No, can you influence not to be used as you mentioned? You try. Can you avoid a job that obviously will use your expertise in questionable ways? Yes. The right and wrong is clear, people who try to muddy it they just seek justification.
I personally turned down multiple offers/work when it comes to drones for example, I designed stuff back in 2020 that some companies now just knew about it and its potentials, but when you meet with them and discuss what they are trying to build, you know that whatever they are after can be used in bad faith if the company decided to do so, do you sell your soul for the cash or do you prefer to sleep well at night?
The only exception is whatever you built has no direct or obvious bad faith, you build a library, a gstreamer addon, etc., that can get a pass.
I'm not GP but I could've written a similar comment. Personally I don't draw the line based on "proximity to war", but on the choices being made. I think poorly of someone who freely chooses "job directly contributing to war" over "job mostly unrelated to war".