Installing a solar panel can be done today, for a $100. Tomorrow it will be $50, and it’ll keep going down until the market dictates the price.
Nuclear takes years to build and generate output, and the price is going up. It would be foolish to build a nuclear plant today unless you have a specific need for it (small location, little sunlight/wind).
Personally I think that in 20-40 years time most people will get the bulk of their energy from local solar panels, with the grid, backed by a mix of renewables and existing non-renewable sources filling in all the gaps.