Nottingham Forest will face Derby in the second round of the Carabao Cup, while Leicester will visit Newcastle.