Someone ask this
question on Nigerians local board, the reason why miners are not located or negligibly located in Nigeria as a result of poor electricity supply. In Nigeria, electricity supply is poor in many areas and the only option anyone that want to mine can have is to use solar energy.
Assuming you get yourself like one or two Antminer S19 Pro, powering it with solar, will it be profitable after considering the budget and maintenance?
Those miners and solar panels are not manufactured in Nigeria, they are probably manufactured in China which will make them costly as they will be shipped.
Ideally, when the equipment does not break down, you can make a profit. But if there are no good services for servicing asics and equipment for solar panels in the country, then it is better to use electricity for your own needs, and you can buy bitcoin while it is inexpensive.