Your roosts should be above the nesting box (as you have them) or the birds will sleep in the boxes.I’m quite new to this. I’m not sure what or how those roost are. I appreciate the help
You typically want them at least 1-foot away from the wall. You want them high enough that the birds can walk under them but not so high that they can't jump/fly at a 45-degree angle to get up and down.
This is a great article to read for information and ideas:
https://www.backyardchickens.com/articles/yakisugi-coop.76398/
The article links to this site which as some great information for spacing in a small coop:
https://www.thefeatherbrain.com/blog/how-tall-should-a-chicken-coop-be