mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-04 09:06:53 +01:00
30 lines
632 B
Nix
30 lines
632 B
Nix
|
{ config, lib, pkgs, self, ... }:
|
||
|
|
||
|
let cfg = config.jopejoe1.doc;
|
||
|
in {
|
||
|
options.jopejoe1.doc = { enable = lib.mkEnableOption "Enable Documentation"; };
|
||
|
|
||
|
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;
|
||
|
generateCaches = true;
|
||
|
};
|
||
|
};
|
||
|
environment.systemPackages = with pkgs; [
|
||
|
man-pages
|
||
|
man-pages-posix
|
||
|
linux-manual
|
||
|
];
|
||
|
};
|
||
|
}
|