Do you let your 6 month old nap for as long as they want?

I read on google that you shouldn’t let your baby sleep more than 2 hours or else it will effect their bedtime. I’ve been doing this, but I feel bad waking my daughter up and I’m not sure if I should be.

What do you/did you do at that age?