Packages."[definition 1-entry 586]"' is not of type `package'

building Nix...
building the system configuration...
error: A definition for option `"[definition 1-entry 586]"' is not of type `package'. Definition values:
       - In `/etc/nixos/configuration.nix':

is there a way to find that element “[definition 1-entry 586]” without binary search and co.

Yes, you can count until you found the 586 entry.

Usually I’d just look at the most recent change.

Having a tad more time now:

It is very likely that you either use an override(Attrs) “inline” and forgot about the surrounding parenthesis, or you added some font"package" to the list that has been restructured years ago to be a set of individual fonts rather than a single package containing all of them years ago, but still appears in blog posts the old way, or which would be the most annoying thing: there changed a package recently the same way as that font package did.

In that case it would of course not help to look at the most recent changes in your configuration.

In my opinion, it would have been the best to not even have that list grow this much. Any packages list that has more ~10 entries is a red flag for me, and should be looked and and decided if splitting in individual modules would make sense.

If you were linking your config here, we might be able to help to debug the problem. (Or see it with just looking at the list)

1 Like

Hello Norbert,
the packages are not a list but a merged list/set …

thanks for the hints

it was a mistake that I restructured a bit and ended up nesting a list in a list instead of only adding both contents

If you are already concatenating sevaral lists, this is even more a sign that a refactor into several modules is overdue…

is less about a package but the configuration of a desktop system

  • here I like to have the possible needed applications available (e.g. to work without internet)