Code check - running wire in ceiling
We are installing some recessed lighting in our kitchen ceiling. The ceiling is completely open. The ceiling joists are 2x4s (full 4" tall) and the space above is dead space/attic.
My understanding of electrical code is that when wiring perpendicular to joists the wire must pass through holes in the joists, not above the joists. It's also my understanding that wires/holes must be 1.25" from the edge of studs or 2" from the edge of joists.
This doesn't seem possible in this case, unless I am missing some exception for attic spaces? Or should I just go with boring a hole at the center of the joist and using nail plates? Thanks for your help.