Bruno BELANYI
65a8f7c481
Consolidating all modules under the same path, to clear out the top-level directory.
18 lines
390 B
Nix
18 lines
390 B
Nix
{ config, lib, ... }:
|
|
let
|
|
cfg = config.my.home.documentation;
|
|
in
|
|
{
|
|
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;
|
|
}
|