They weren’t socialists in anywhere near the sense the Soviet Union was. Nazis were for Germany period. Hitler went off the rails when he started WW11 by invading Poland and then the rest of Europe as well as the Soviet Union. Holocaust was final mistake. WW1 laid the ground work for the the whole damn thing and that was a fault of a whole bunch of idiotic politicians not just Germany.
Uhhh, may I remind you that the Soviet Union invaded Poland, too?
Not to mention Finland, as well.
And Latvia, Lithuania, and Estonia.