The nicer the barracks is the less likely they are to prison break. Also the fewer of them. The less likely they are to prison break
Imagine going from sweaty tribal life to a air-conditioned good quality hospital beds with fine quality meals you don’t want to revolt at that point you want to join those people.
I also give my prisoners books and radio to keep mood up and granite batons are issued to guards when prisoners get annoyed.
The vanilla enhanced mod has tasers.
Personally, I try to keep one husky per colonist as a good ratio. And nothing puts down a prison riot quicker than 30 Huskies charging into the prison to bite and scratch…
And since I have a hospital just for prisoners in the prison, it’s pretty easy to carry them across the floor to the beds.