How long can you EBF for?

How long can a baby survive on just breastmilk? Is it necessary to introduce solids at 6 months? I'm planning on breastfeeding for at least a year and I would like to breastfeed only for as long as possible