How do I find a pubkey and the nbits value to generate a genesis block?
The public key doesn't matter, no coins are created in the genesis block. 

nBits decides the blocks difficulty, affecting how long it will take to mine. You also have to modify your daemons code to allow this difficulty.