宅男 is NOT nerd.
宅男 means people who rarely get out from their house. 宅男 emphasizes that people do anything in their house. Whereas nerd emphasizes that people stay far away from the society, they have their own way to learn things.
For example, if a person always goes to the library to learn things, we can call him nerd, right? But we CAN'T call him 宅男, because library is not where he lives.
In chinese, we call people who always read books 书呆子. It means a guy getting everything from books and he doesn't do anything but reading books. Normally 书呆子 is NOT a good word.