TypeError: BootSpec.__init__() missing 1 required positional argument: 'initrdSecrets'

Fixed it!

deleted a lot of previous generations using (a for loop)

sudo nix-env --delete-generation "$i" --profile /nix/var/nix/profiles/system

after that i ran

nix-store --gc

Then i restarted!

After that, i was, again, able to build-switch

4 Likes