I assume they use the same "magic" that a pneumatic nailgun without a hose (or expended nails) uses.
Again, full realism isn't that much fun in a game.
Man...I really want to use this nailgun for this mine.
:: takes 60 in-game minutes to load a gas generator, battery bank, compressor, hoses...