about summary refs log tree commit diff stats
path: root/modules/by-name/do/documentation/module.nix
blob: 4616a991deffb6099d89ef19d540acb76798a460 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
  config,
  lib,
  ...
}: let
  cfg = config.soispha.documentation;
in {
  options.soispha.documentation = {
    enable = lib.mkEnableOption "documentation";
  };
  config = lib.mkIf cfg.enable {
    documentation = {
      nixos = {
        # FIXME: This results in a evaluation failure (with lanzaboote options) <2024-05-23>
        includeAllModules = false;

        enable = true;
      };
      dev = {
        # Add man pages aimed at developers (I guess c library stuff, and the like)
        enable = true;
      };
    };
  };
}