How to limit the current to my PCB board?

Use a 220ohm resistor between ATtiny pin and base of the transistor.

Use a 33ohm (>=0.5watt) resistor in series with the LED.

The LDR/pot is drawn differently in both diagrams, and doesn't work the way it's drawn.
Read up about voltage dividers.
Leo..