I think the word "networking" (not usually a negative) would fit better than "nepotism" (almost always seen as a negative) here. Hiring your friends - ahead of other candidates who might be better qualified - might well be considered nepotism, but going out of your way to make friends with people in the hope that they might hire you probably isn't nepotism as most people would understand it.