2021-03-13 01:01:09 +01:00
|
|
|
{ config, lib, ... }:
|
|
|
|
let
|
|
|
|
cfg = config.my.home.documentation;
|
|
|
|
in
|
2021-02-20 14:03:59 +01:00
|
|
|
{
|
2023-03-16 17:39:13 +01:00
|
|
|
options.my.home.documentation = with lib; {
|
|
|
|
enable = my.mkDisableOption "documentation integration";
|
2021-03-13 01:01:09 +01:00
|
|
|
};
|
|
|
|
|
2021-02-20 14:03:59 +01:00
|
|
|
# Add documentation for user packages
|
2021-03-13 01:01:09 +01:00
|
|
|
config.programs.man = {
|
|
|
|
enable = cfg.enable;
|
2021-02-20 14:03:59 +01:00
|
|
|
generateCaches = true; # Enables the use of `apropos` etc...
|
|
|
|
};
|
2021-03-13 01:01:09 +01:00
|
|
|
|
|
|
|
config.programs.info.enable = cfg.enable;
|
2021-02-20 14:03:59 +01:00
|
|
|
}
|