nix-conf/nixos-modules/doc/default.nix

40 lines
651 B
Nix
Raw Permalink Normal View History

2024-07-10 23:02:54 +02:00
{
config,
lib,
pkgs,
self,
...
}:
2024-01-29 11:55:32 +01:00
2024-07-10 23:02:54 +02:00
let
cfg = config.jopejoe1.doc;
in
{
options.jopejoe1.doc = {
enable = lib.mkEnableOption "Enable Documentation";
};
2024-01-29 11:55:32 +01:00
config = lib.mkIf cfg.enable {
documentation = {
enable = true;
doc.enable = true;
dev.enable = true;
info.enable = true;
nixos = {
enable = true;
includeAllModules = true;
options.warningsAreErrors = false;
};
man = {
enable = true;
2024-01-29 12:13:23 +01:00
generateCaches = false;
2024-01-29 11:55:32 +01:00
};
};
environment.systemPackages = with pkgs; [
man-pages
man-pages-posix
linux-manual
];
};
}