NixOS / nixos-search

Search NixOS packages and options
https://search.nixos.org
MIT License
411 stars 101 forks source link

Add home-manager search feature #323

Open busti opened 3 years ago

busti commented 3 years ago

Home manager has several services and config options available at https://github.com/nix-community/home-manager/tree/master/modules which are similar to nixos configuration options.

Searching through these manually or using github search is rather tedious. Using search.nixos.org to search through these feels like a natural extension of it's feature set.

ysndr commented 3 years ago

If I see correctly home manager expenses it's modules in it's flake definition.I'm working on flake support for nixos-search right now. After that it is a configuration issue I assume.

blocked by: #324

ysndr commented 3 years ago

in the meantime you can find all options here: https://rycee.gitlab.io/home-manager/options.html

SuperSandro2000 commented 2 years ago

The blocker got merged a while ago.

pinpox commented 2 years ago

The blocker got merged a while ago.

What needs to be done to get this working now?

ncfavier commented 2 years ago

Decide how to expose the options in home-manager (see https://github.com/nix-community/home-manager/issues/2297#issuecomment-1079698898), and then reflect that in the nixos-search backend, probably also with a frontend change to separate HM options from NixOS options.

ysndr commented 2 years ago

We currently do not track flake options (iirc) but should be able to. However merging them with the nixos optionswould be more of a ui challenge and homeManager (as well as nix-Darwin for that matter) is special as it introduces its own framework separate from a configuraton.nix (although able to integrate)

ncfavier commented 2 years ago

Did some work towards this in https://github.com/nix-community/home-manager/pull/2971 (not solving the main problem).

nixos-discourse commented 2 years ago

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/the-nix-module-in-home-manager-and-nixos/20999/11

Asqiir commented 3 months ago

Citing pinpox:

What needs to be done to get this working now?