Nixpkgs options

Where I can find nixpkgs options?If I do nixos-options nixpkgs.options all I get are options I already set,not new ones I might want to check out.

I’m confused, there is no nixpkgs.options (unless you set it, but it still won’t be used). Is there anything you’re looking for in particular that’s not covered in https://nixos.org/nixos/options.html?

I think OP is asking about the options you can set in the ~/.config/nixpkgs/config.nix, e.g. allowUnfree or some package specific options. Unfortunately AFAIK there is no good way to find them except searching the all-packages.nix.

Edit: And we have nixpkgs.config in the configuration.

1 Like

@Ninlives is correct.Thanks

Not just all-packages.nix, as other package sets can also reference them. For example, pkgs/top-level/ocaml-packages.nix references config.unison.enableX11 for the unison package. I’m not sure if any individual packages do this too; I hope they don’t reference config directly, but I don’t think there’s anything actually preventing them from doing so.

So it would be hard to even write such tool like nixos-options,right?