summaryrefslogtreecommitdiff
path: root/modules/shared/base/documentation.nix
blob: 1335c17d6c566c27ad80e3fa0342e6f9df206501 (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;
    };
  };
}