How do I fill nail holes in baseboards?
The make wood putty in a range of colors to match different types of wood.  You can probably find one that's a close match to your baseboards.

Take a small amount, fill the nail hole and wipe it smooth with a damp cloth.  When it dries, lightly sand it and the surrounding area down, then re-varnish the area.