I have all of my outside receptacles on a single 20 amp circuit for Christmas lights. I currently have the circuit controlled by a single pole switch. I am going to get rid of the switch and wire the circuit to a mechanical timer. I am going to mount the timer cabinet with an offset nipple next to the main panel. Can I make the connections from the breaker to the timer in the main panel with wire nuts or does this constitute a code violation using the main panel as a junction box?