mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-07 13:29:22 +02:00
add doc option
This commit is contained in:
parent
c8c58562bd
commit
f8d54acaa8
5 changed files with 74 additions and 66 deletions
|
@ -7,6 +7,7 @@
|
|||
./auto-update
|
||||
./bluetooth
|
||||
./boot
|
||||
./doc
|
||||
./events
|
||||
./kodi
|
||||
./keyboard
|
||||
|
|
29
modules/doc/default.nix
Normal file
29
modules/doc/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ 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
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue