home: add documentation

By default, packages installed by home-manager do not have their
documentation added to man pages and the info database
This commit is contained in:
Bruno BELANYI 2021-02-20 13:03:59 +00:00
parent bf2671a162
commit 631292faf2
2 changed files with 10 additions and 0 deletions

View file

@ -2,6 +2,7 @@
{
imports = [
./direnv.nix
./documentation.nix
./git
./zsh
];

9
home/documentation.nix Normal file
View file

@ -0,0 +1,9 @@
{ ... }:
{
# Add documentation for user packages
programs.man = {
enable = true;
generateCaches = true; # Enables the use of `apropos` etc...
};
programs.info.enable = true;
}