nix-config/modules/documentation.nix

33 lines
706 B
Nix
Raw Normal View History

2021-04-17 13:40:28 +02:00
{ config, lib, ... }:
let
cfg = config.my.module.documentation;
in
{
options.my.module.documentation = with lib.my; {
enable = mkDisableOption "Documentation integration";
dev.enable = mkDisableOption "Documentation aimed at developers";
2021-04-17 13:40:28 +02:00
info.enable = mkDisableOption "Documentation aimed at developers";
2021-04-17 13:40:28 +02:00
man.enable = mkDisableOption "Documentation aimed at developers";
2021-04-17 13:40:28 +02:00
nixos.enable = mkDisableOption "NixOS documentation";
2021-04-17 13:40:28 +02:00
};
config.documentation = {
enable = cfg.enable;
dev.enable = cfg.dev.enable;
info.enable = cfg.info.enable;
man = {
enable = cfg.man.enable;
generateCaches = true;
};
nixos.enable = cfg.nixos.enable;
};
}