True, they can be mentally addictive as well.
Your example isnt about addiction though. its that most likely you are kinda hungry, want to do something with your hands while you are thinking, or a nervous tick.
mariam webster defines addiction as follows
> : compulsive need for and use of a habit-forming substance (such as heroin, nicotine, or alcohol) characterized by tolerance and by well-defined physiological symptoms upon withdrawal
> broadly : persistent compulsive use of a substance known by the user to be harmful
personally I would not even require the substance beeing harmfull. So yes, you can imho be addicted to peanuts, but finishing the bowl on your desk is not that.