Douglas Harper's Etymology Dictionary
nig-nog
"foolish person," 1953, OED suggests from earlier cant slang nigmenog "a very silly fellow" (1700). As a term of abuse for a black person, a shortened and reduplicated form of nigger.
Wiktionary
nig-nog
n. (context slang offensive ethnic slur English) A black person.