Visa to enter Nigeria

My friend working in Kenya with a work permit since 5 months. He is an Indian possessing valid Indian passport. He wants to leave this job and to to Nigeria. wher he has to apply for visa? In India or Kenya