Today I’ve noticed a
[Firmware Bug]: Failed to parse event in TPM Final Events Log
on my NixOS startup. I shrugged and ignored it. However Windows when booting got a BSOD on TPM.sys. I was able to boot Windows using UEFI’s Windows menu entry – only the entry on systemd-boot got that error.
I also had no generations showed on the systemd-boot. At last I decided to ask Google’s Gemini and got the generations listing back with
sudo /run/current-system/bin/switch-to-configuration boot
So, the problem is fixed. After generations appeared again and even selecting the latest one, the error does not appear again on NixOS start and Windows now boots successfully using NixOS menu.
But the process through which I got into the initial state is not clear to me.
Any tips on why I got into that mess and why the latest entry now does not trigger the issue?