I need a little help with how to run a wire correctly from a switch to some can lights. I have made a crued drawing to try and help explain the situation. My kitchen has a vaulted ceiling. I have a beam that runs across the kitchen on one side supporting the 2nd story of the house. I need to run a wire from a switch in a wall to some beams I am going to be building that will have can lights in them. Here are the pictures.
So I need to run a wire from the switch in the center support for the beam up and then over to the new beams for the cans. I will be putting a 1x8 to the beam supporting the 2nd floor to match the beams I will be building so I could chissel out the drywall behind the middle of the 1x8 and run the wire in there but I'm thinking this wouldn't be up to code since someone could try to put a nail in the 1x8 to hang something and easily pierce the wire. I'm also going to be using crown moulding around the walls and beams so I could run the wire in the crown if that is acceptable. Hopefully I explained this well enough. Thanks for any suggestions on how to run this wire.
So I need to run a wire from the switch in the center support for the beam up and then over to the new beams for the cans. I will be putting a 1x8 to the beam supporting the 2nd floor to match the beams I will be building so I could chissel out the drywall behind the middle of the 1x8 and run the wire in there but I'm thinking this wouldn't be up to code since someone could try to put a nail in the 1x8 to hang something and easily pierce the wire. I'm also going to be using crown moulding around the walls and beams so I could run the wire in the crown if that is acceptable. Hopefully I explained this well enough. Thanks for any suggestions on how to run this wire.