nix-config/modules/home/documentation/default.nix

18 lines
390 B
Nix
Raw Normal View History

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