Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce types.anything #97119

Merged
merged 5 commits into from
Sep 21, 2020
Merged

Introduce types.anything #97119

merged 5 commits into from
Sep 21, 2020

Commits on Sep 15, 2020

  1. Configuration menu
    Copy the full SHA
    b381016 View commit details
    Browse the repository at this point in the history
  2. lib/options: Fix mergeEqualOption for singular functions

    Previously it would error out for a single function definition
    infinisil committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    6e7bc2c View commit details
    Browse the repository at this point in the history
  3. lib/types: Introduce types.anything

    This new type has unsurprising merge behavior: Only attribute sets are
    merged together (recursively), and only if they don't conflict.
    
    This is in contrast to the existing types:
    - types.attrs is problematic because later definitions completely
      override attributes of earlier definitions, and it doesn't support
      mkIf and co.
    - types.unspecified is very similar to types.attrs, but it has smart
      merging behavior that often doesn't make sense, and it doesn't support
      all types
    infinisil committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    67551f4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6a7d250 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3106993 View commit details
    Browse the repository at this point in the history