Why not have the nest box OUTSIDE the coop. Mine are made where I can open them from the outside to get eggs or clean them. They can also be removed by taking out just two screws. There is not enough protrusion inside for them to use it as a roost.
Take a look at them using the link below.
Take a look at them using the link below.