My breaker box is surface mounted in my garage. I want to install an outlet right next to it by running a conduit nipple out the side of the breaker box to the new outlet box. I then want to run NM from that outlet box in conduit up the wall and through the ceiling (conduit for protection and get me through the ceiling). From there I will take the NM across the attic (no conduit needed) to another wall then down through the ceiling and down the wall in conduit to a second outlet box.
Will this be within code? Am I allow to come out the side of the breaker box?