- Get colorful man pages
- replace man-db with mandoc, see NixOS wiki, and install
most
in configuration.nix
documentation.man = {
# In order to enable to mandoc man-db has to be disabled.
man-db.enable = false;
mandoc.enable = true;
};
environment.sysemPackages = [
pkgs.most
];
you may want to install extra man pages, see above wiki
- use
most
asMANPAGER
, try it at terminal
MANPAGER=most man nix
now we have colorful man pages.
home-manager
configuration
-
home-manager default to enable
man-db
and not supportingmandoc
at the moment (2024-04), so we need to disable it and use ourman
command frommandoc
.program.man.enable = false;
-
configura
MANPAGER
tomost
, need to re-login to take effect:
home.sessionVariable = {
MANPAGER = "most";
};
- tell
mandoc
to find our man pages installed via home-manager
shellAlias = {
man = "man -m ~/.nix-profile/share/man";
};