Manchester City midfielder Samir Nasri has been ruled out of action until February with a hamstring injury.