[newbie] is there a way to quickly check if a package has an option as alternative?

hello everyone!!!

so there’s this site called https://searchix.ovh/ and it’s basically like a meta search engine for nix, right, like it shows you immediately whether there is an option for the package or not, which is usually the better alternative than having to install just the pkgs.pkg in environment.systemPackages, right…

so uhm… that would’ve been nice to know 6000 lines ago in my configuration.nix (which i’ve heard is a large number?) :smiley:

is there a way to, uh, how do i say this… (5 minutes later)… check and see if any of my systemPackages have their own services. or programs. options as alternative? such as, for example, pkgs.firefox becomes programs.firefox.enable or something?

or was i, am i… supposed to check them one by one manually?

thanks!!

:smiley:

EDIT: still no answer… :confused:

1 Like

That edit is I think not in keeping with the values. Do you think that posting a question is some form of butler bell?

To answer the question: no, I don’t think there is any metadata to indicate that a package in nixpkgs has a module in NixOS. The general expectation is that yes, if you are running nixos and you want to use a package, check for a service or a program. I agree that it might could be potentially interesting to add in that metadata, and augment search indexes with it. Sounds like a fun project.

1 Like

I don’t know a better way.

2 Likes