If I may step in the discussion...Besides the how-to-focus points discussed above:
Lenses for cameras are optimized at approx. 1:10 magnification ratio. Macro lenses are optimized for up to 1:1. Optimized meaning, they produce the best image at that magnification. You can put a lens on a bellows and produce high mag ration but the image degradation will make it worse.
OTOH, enlarging lenses are made to enlarge small negs 5x or 10x or even more, therefore they work best at 10:1 ratio. You CAN focus at infinity with them, if you can position the film plane freely, but the image will probably suck.
Worth experimenting, i guess, but don't expect a Nikkor enlarging lens to give the image quality of a photographic Nikkor...