Borrowed from Sanskrit नागरी (nāgarī), feminine of नागर (nāgara, “of the city”, adjective), from नगर (nagara). Related to negara, Angkor.
Nagari