Skip to content

fix: use attrsOf anything instead of attrs - #55

Merged
vic merged 2 commits into
denful:mainfrom
vidhanio:attrsof-anything
Jan 25, 2026
Merged

vic merged 2 commits into
denful:mainfrom
vidhanio:attrsof-anything

Conversation

@vidhanio

@vidhanio vidhanio commented Jan 24, 2026 •

Copy link
Copy Markdown
Contributor

this has more predictable merging behaviour, attrs was silently discarding substituters defined in different files. this pr removes the silent discard behaviour by using a freeformType of attrsOf anything as recommended by the nixos manual, and allows merging commonly used list options by manually defining them.

from the nixos manual:

Warning
This type will be deprecated in the future because it doesn’t recurse into attribute sets, silently drops earlier attribute definitions, and doesn’t discharge lib.mkDefault, lib.mkIf and co. For allowing arbitrary attribute sets, prefer types.attrsOf types.anything instead which doesn’t have these problems.

this has more predictable merging behaviour, `attrs` was silently discaring substituters defined in different files.
@vidhanio
vidhanio marked this pull request as draft January 24, 2026 03:15
@vidhanio
vidhanio marked this pull request as ready for review January 24, 2026 03:28
@vic
vic merged commit fa1846d into denful:main Jan 25, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants