summaryrefslogtreecommitdiff
path: root/parts/modules/shared/base/documentation.nix
blob: ecc5813dce02759ec3c27041424f541ccdd568a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
  config,
  lib,
  ...
}: let
  cfg = config.base.documentation;
  inherit (lib) mkEnableOption mkIf;
in {
  options.base.documentation.enable = mkEnableOption "base module documentation";

  config = mkIf cfg.enable {
    documentation.man.enable = true;
  };
}