-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Deprecate loaOf
#1800
Comments
Usages:
Others:
|
Is it still relevant? |
The file systems and users/groups are used in a lot of places in NixOS. It would be a lot of work to change them, but possible. Personally I like having the list / attribute set choice, and now we have I still wonder what @shlevy meant by "doesn't merge well", as that seems to be the key point. |
The problem is that you cannot make list element modular. Using list in NixOS breaks the modularity. |
This issue is still valid. |
Uniqueness of names can be nicely enforced by the set too. |
What would replace this type? |
|
I have made PR #63103 that should safely deprecate |
#63103 was merged. |
types.loaOf
only exists for backwards compatibility, and it's kind of a hack and doesn't merge well. We should fix all modules that set a list instead of an attribute set in nixpkgs, then once that's done add a trace message when a config is encountered that uses a list instead of a set.The text was updated successfully, but these errors were encountered: