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.
This comes down to a basic calculation. Yes you can be profitable, however it will take time, you have to carfully calculate your power needs, battery needs (as I assume you will want to mine during the evening, solar array size, the miners themselves etc. you will get a calculation of cost vs profitability. A time frame based on bitcoins current, although wavering price. You may find that a break even could be years away but ultimately it should make a profit. Like ma y things its a risk asset investment.