Question: are baseboards nailed or glued?
Answer: There's no need to nail or glue them into place; just install the baseboard right over them, tight against the floor molding. It's best to keep the nails at the bottom of the base above the gap so they go through drywall, not air.