summaryrefslogtreecommitdiff
path: root/modules/shared/base/documentation.nix
blob: 0139f7da895f30e380e0aadec945ded96b1bd6a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  config,
  lib,
  ...
}: let
  cfg = config.base.documentation;
  enable = config.base.enable && cfg.enable;
in {
  options.base.documentation = {
    enable = lib.mkEnableOption "documentation settings" // {default = true;};
  };

  config = lib.mkIf enable {
    documentation = {
      doc.enable = false;
      info.enable = false;
    };
  };
}