Pistachios aren't toxic to your dog, but they're not recommended.
They're high in fat, and they contain a mold that puts your dog at risk for liver damage.
Nuts, in general, can give your dog an upset stomach or cause an intestinal obstruction leading to more serious digestive issues.