This commit is contained in:
alsaiduq-lab 2025-03-15 07:29:44 -06:00
parent f3c39a4d4a
commit a62cdf2dc1
2 changed files with 43 additions and 0 deletions

View file

@ -18,6 +18,7 @@
./timezone.nix ./timezone.nix
./user.nix ./user.nix
./systemd.nix ./systemd.nix
./man.nix
]; ];
# Enable CUPS to print documents. # Enable CUPS to print documents.

42
modules/man.nix Normal file
View file

@ -0,0 +1,42 @@
{ config, pkgs, lib, ... }:
{
documentation = {
enable = true;
dev.enable = true;
doc.enable = true;
info.enable = true;
man = {
enable = true;
generateCaches = true;
};
nixos.enable = true;
};
environment.pathsToLink = [ "/share/man" "/share/doc" ];
environment.systemPackages = with pkgs; [
man-pages
man-pages-posix
stdmanpages
docutils
python311Packages.docutils
python311Packages.docstr-coverage
python310Packages.docutils
python310Packages.docstr-coverage
texlivePackages.documentation
docbook5
docbook-xsl-ns
docbook-xsl-nons
doctoc
doctave
documentation-highlighter
];
environment.variables = {
MANPATH = [
"${config.system.path}/share/man"
"${pkgs.man-pages}/share/man"
"${pkgs.man-pages-posix}/share/man"
];
};
}