mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-06 21:09:22 +02:00
move nixos modules to nixos-modules
This commit is contained in:
parent
7394c5f317
commit
611796f02e
29 changed files with 225 additions and 7 deletions
39
nixos-modules/doc/default.nix
Normal file
39
nixos-modules/doc/default.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
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 = false;
|
||||
};
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
man-pages
|
||||
man-pages-posix
|
||||
linux-manual
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue