Nig, same root word as nit - small, insignificant, miserly, from the Norse.
The other comes from the word “negro” when pronounced the same way “window” is when it is pronounced “windder”.