home: documentation: make it enable-able
This commit is contained in:
parent
130adae9c6
commit
c2e9225b3d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue