Hmmm. If there is a nuance, it is that smugness, like CocoPop says, is arrogant self-certainty, a self-opinion. Haughtiness involves the way you treat someone else. So technically, I think it's possible to be smug without necessarily being haughty. Hairsplitting.