-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
Documentation: pkgs.nixos #270294
Comments
We might may want to deprecate this one in favor of a new one (TBD) in |
|
Yeah, that's why I suggested The poor little function already has a history of being pulled in multiple direction, making it a weird mishmash of interfaces.
Being a builder would entail returning a derivation. A new one for NixOS could return Going to back to the list of requirements, my conclusion is that Now concretely, what am I proposing? (And apologies to anyone who finds this while it doesn't exist yet, or after the design has changed, although I find that unlikely, having spent way too much thought on these interfaces. Famous last words.)
|
Generally this sounds pretty good to me!
Problem: A bunch of modules (both in Nixpkgs and third-party) depend on being able to modify
This is rather odd from an outsider perspective. The term "configuration" is already somewhat established for this, but I don't think it's too late to change that. Other ideas are
Not a big fan of |
Correct. These users should actively avoid
It's the solution with least entropy in my perspective, but I'm open to other variations. Maybe what you're suggesting, or adding
It's not a function to use widely, I agree, but this would be a prime use case for it. |
It's a pretty bad experience to only become a user later though. And I don't think there needs to be a reason to make overlays/config read-only. At least |
Maybe some sort of blueprint object, like what Until we have that though, I think sometimes forbidding overlays is valid, and actually really good because it stops overlay interference, radically. Most things don't even need to be an overlay.
Not sure actually what you mean here. |
Start out with nixpkgs/nixos/modules/programs/ccache.nix Lines 54 to 55 in b1cea2e
And now you get an error that |
The error should clarify that if you want NixOS to manage Nixpkgs, you need to use the normal NixOS entrypoint. I agree that it's not super nice, but being nice is how you get chaos. Sometimes you have to draw a line. Boundaries are an important aspect of Nix as well. Some things that are forbidden, so that you get guarantees about something else. If it's not a different approach to working with NixOS, then what's the point of having another entrypoint? |
If I'm wrong and everyone hates it, we could allow it later, perhaps with a flag. |
I guess this is a good reason to not have |
It's not recursive when NixOS doesn't specify Nixpkgs. |
Imo |
Problem
pkgs.nixos is missing documentaiton
Proposal
it should be documented in the nixpkgs manual but where?
Checklist
Priorities
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: