Agree. He certainly did it for the family. If his motivation was wholly selfish he wouldn’t have gone back to have a proper goodbye with Skyler. He sacrificed himself for her to make sure she was safe by taking on the nazis. No loose,ends, no threats, no question that he was the cook.
He went after the nazis because they reneged on their agreement to kill Jesse.