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
|
# Add documentation for user packages
|
||||||
programs.man = {
|
config.programs.man = {
|
||||||
enable = true;
|
enable = cfg.enable;
|
||||||
generateCaches = true; # Enables the use of `apropos` etc...
|
generateCaches = true; # Enables the use of `apropos` etc...
|
||||||
};
|
};
|
||||||
programs.info.enable = true;
|
|
||||||
|
config.programs.info.enable = cfg.enable;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue