Cough medicine while bedsharing

I’ve caught a horrible virus that has both me and baby hacking and coughing all day and night and the congestion is unbearable. Me and baby share the bed all night and he refuses to sleep by himself. I have Robitussin that I’ve been thinking of taking but I’m scared that it’ll make me drowsy. Does anyone have experience with cough medicine and cosleeping? Or any other medicines that are safe for breastfeeding that I can take that won’t make me drowsy? Even homeopathic remedies would be helpful.