Just tell him.
There's no reason to go for a roundabout approach. Just tell him that you like him. If he accepts, great for you! If he rejects you, don't be sad. You'll get plenty of chances to have somebody else later on.
(Also, in my experience, cool boys LOVE nerdy girls.)