In Nissans when they brake and battery light come on, then your alternator could be the problem, this happened in my old car, a 200sx. I would go to auto zone or advance and have those tested first.