Using programmer with ATMEGA 328P in circuit board

Baffled here. Why are you consulting YouTube for this, when the entire UNO or Nano design is freely available online? Also the chip data sheet, which has all the information about the clock circuit...
Also turn off the computer and pick up some commercial boards and actually look closely at them.