-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
Rely on upstream for extracting nixpkgs options #460
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
OK, by using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks like quite a drop in replacement for nixpkgs.
The benefits are good in the sense of nixpkgs the only thing we need to watch for is that the output format does not diverge from reading other flakes' options once we do expose those on the frontend.
If it imports I'm fine with this
Use the `options.json` generated in nixpkgs to be more in sync with the manual. Also fixes usage of `nixpkgs-archive` with local paths.
Starting an import now |
Instead of extracting options from nixpkgs ourselves in
flake_info.nix
, use the generatedoptions.json
. As a result:options.json
) Invisible options are not imported anymore. This includes removed/aliased/etc options, which proved to be confusing for some people: Missing description for networking.interfaces.<name>.ipAddress nixpkgs#164453. Note that there's some discussion in that issue about making those options visible in the manual and clearly indicating that they are removed/aliased/etc, but this is currently not the case and I think we should align with the nixos manual.virtualisation.diskSize
are now imported because of https://github.com/NixOS/nixpkgs/blob/fe9906cb4896d70d86452d76d11838025ffd6532/nixos/modules/misc/documentation.nix#L11.Also, we can make the
flake
argument toflake_info.nix
optional, which fixesnixpkgs-archive
's option import for local paths, and use--argstr flake
instead of--arg flake
so that we can pass flakes without a colon (e.g. flakes from the registry or paths).Related to #447