I think 8U is gonna be a bit tight for all the above and there is no way you'll get a UPS in that box with the equipment and you always want to leave some space for venitaltion and expansion. As for depth, it depends but I'd say 450mm is plenty. I don't have an NVR so not sure how deep those are...