the oxford english dictionary says the use of the noun "nick" in the sense of a prison, especially one at a police station, is of australian origin. the first published reference is from the sydney slang dictionary (1882), which defines "the nick" as a "gaol."