Here are the most common products used for filling holes before painting. For filling nail holes in wood trim, or smaller holes in plaster, drywall and even plastic trim, a high-quality, lightweight, ...
If you're replacing old trim with new baseboards, this is a handy way to quickly hide all the nail holes without having to spackle ... those, use a lightweight putty like Gorilla Wood Filler ...