How is citizenship determined in your country?

You pop out a newborn baby in your home country how are you granted citizenship?