Want to try it out? Run the devshell:
nix develop github:raphiz/options-search
# you will be greeted with further instructionsFirst, add this flake as an input to your flake:
inputs = {
options-search.url = "github:raphiz/options-search";
}then import the module
nixpkgs.lib.modules.evalModules { # or your module-system function of choice, eg. nixpkgs.lib.nixosSystem
modules = [
inputs.options-search.nixosModules.default
];
};Thats it. You can now run the options-search in the evaluated module context.
For more examples, checkout the devshell.nix file.
- Based upon the ideas and code of home-manager-option-search.
- Based on parts of nixos-render-docs
- Idea inspired by Alain Lehmanns nix-option-search