I don’t use nails for anything but instead use pressure sensitive putty for my smoke, Co2, thermostat etc, so you could try that.