Dual booting - NixOS not booting after Windows update

Hi,

This is the second time when Windows update breaks something and I cannot access NixOS, first time was shortly after I started my journey with NixOS, so after few tries I just decided to reinstall it completely, however I would like to avoid this.

Regarding my setup:

  • I have two separate drives, so Windows and NixOS are not on the same disk
  • As my bootloader I use Lanzaboote with Secure Boot enabled
  • Drive with NixOS is LUKS encrypted with unlock using TPM2
  • Everything has been working properly until today, issues started after ‘second part’ of Windows update (I could still use NixOS after updating Windows on shutdown yesterday, it broke after this whole ‘finishing update’ on Windows boot)

Now, after starting PC I can normally see my boot entries, but after choosing one I get black screen and nothing happens. I tried using boot parameters listed online for troubleshooting boot process and leaving PC for some time in case something times out, but the screen stays black. After disabling Secure Boot, I just get a warning that Secure Boot is disabled and things stay the same.

I can boot into first few generations, I believe these are the original install and couple generations after with minor changes. Running nixos-rebuild does not create a new boot entry. I also tried re-enrolling key with sbctl with Secure Boot in setup mode just in case, but things stay the same.

Does anyone have any idea what might be wrong or how to get any logs during boot process? Let me know if some additional information is needed.

In a perfect world I would just get rid of Windows, but unfortunately I still use it for my university, so I have to live with it for now…

Thank you in advance!