The Verdict: Unlikely
The law has no rule for widows or widowers, and it asks applicants to still be living in marriage with their spouse. A widow or widower is therefore unlikely to qualify through the marriage, though you could ask the immigration directorate whether it will consider your case.
Under the 2021 nationality law, the foreign husband or wife of a Rwandan can apply for Rwandan nationality after at least five years of marriage, as long as the couple still live together as a married couple. The rule is the same for husbands and wives, and it does not matter whether your spouse is Rwandan by origin or was granted nationality. The law itself sets no requirement to live in Rwanda.
If you live in Rwanda, your years there count towards naturalisation by residence, which needs 15 consecutive years. If you have children with your late spouse, they are Rwandan by origin through their parent.