When entering Ghana, you will need to present your Nigerian passport along with a valid visa. You can obtain a visa from the Ghanaian embassy or consulate in your home country.
When returning to the US, you will need to present your American passport along with a valid visa. You can obtain a visa from the US embassy or consulate in Ghana.
It is important to note that the requirements for entering and exiting Ghana may change, so it is best to check with the Ghanaian embassy or consulate before you travel.