Well then, when you have lots of solar and wind fields, then it doesn't matter too much, if one gets destroyed. But even those you can defend, even with your own troops, by making adequate contracts.
On the other hand, if you have to rely on nuclear - then a potentiell enemy only needs to target those and you are screwed in many ways. It would be not too hard, for a dedicated commando to blow up, or at least render useless, a nuclear reactor with enough preparation.
But when you are only thinking in military terms: the hard parts to defend with dessert power are the power cabels. But they are also an essential part of nuclear plants and you cannot defend the whole grid.
Your point about cabling is equally valid.
Your point about nuclear less so. I'm more comparing locally generated power, where your power generation can be covered by your own defences, with remotely generated power, which can't.
Making a deal with the moroccean government, would include their troops defending the investment, or could be modified to include own troops.
But like I also said above, the south of europe has plenty of sun, too.