In my experience the first 9 months are hard, there will be a limited time for hacking. Just accept this and spent time on your kid and spouse. Any work you will get done is a bonus.
After 9 months your kid will get into a rhythm, sleep at night from 7 till 7 and take 2 two hour naps during the day. This will give you more time to start hacking again.
After another 9 months your kids rhythm will change again. Still sleeping from 7 till 7 at night, but only one longer 3 hour nap during the day.
Off course every kid is different, but my kid, and the kids of my friends generally follow this sleeping pattern.