home: documentation: make it enable-able

This commit is contained in:
Bruno BELANYI 2021-03-13 00:01:09 +00:00
parent 130adae9c6
commit c2e9225b3d

View file

@ -1,9 +1,17 @@
{ ... }:
{ config, lib, ... }:
let
cfg = config.my.home.documentation;
in
{
options.my.home.documentation = with lib.my; {
enable = mkDisableOption "documentation integration";
};
# Add documentation for user packages
programs.man = {
enable = true;
config.programs.man = {
enable = cfg.enable;
generateCaches = true; # Enables the use of `apropos` etc...
};
programs.info.enable = true;
config.programs.info.enable = cfg.enable;
}