Issue building linux kernel modules after Flake update

I had the same error
What in the end worked for me was to:

  • upgrade Nix (see manual section 3.7)
  • then upgrade the system one stable release at a time, rebooting in between
    • 23.11 → 24.05 → 24.11 → 25.05 → …
1 Like