A fast CLI documentation searcher for Nix.
- Nixpkgs Documentation
- Nixpkgs Comments
- Nixpkgs Tree (pkgs., pkgs.lib.)
- NixOS Options
- Home-Manager Options
manix --help
manix mergeattr
manix --strict mergeattr
manix --update-cache mergeattr
If you want to use it in your editor, check ElKowar's rnix-lsp fork, which uses it to provide documentation on hover and autocompletion.
manix "" | grep '^# ' | sed 's/^# \(.*\) (.*/\1/;s/ (.*//;s/^# //' | fzf --preview="manix '{}'" | xargs manix
sudo nix-env \
--option extra-substituters https://mlvzk.cachix.org/ \
--option trusted-public-keys 'mlvzk.cachix.org-1:OxRv8xos92A++mh82CsgVo8J6cHGSVCOBFx7a6nhbWo=' \
-i -f https://github.com/mlvzk/manix/archive/master.tar.gz
If you're a trusted user or you don't wanna use the cachix cache you can run it without sudo.
$ nix run 'github:mlvzk/manix' mapAttrs
The inspiration for this project came from nix-doc