Hmm, moldings, trims, skirting boards are nailed manually, with a hammer, trim hammer.
I refrain from answering, I don't like nailing with a nail gun.
The point of using a hammer is that you can place the nail exactly where it should be, right in the largest/highest profile part, where it's easiest to reach and putty if needed before painting.
Best regards, P-A