NixOS defaults to booting older generation?

I have the same problem occasionally, and the same workaround.