added
This commit is contained in:
parent
f3c39a4d4a
commit
a62cdf2dc1
2 changed files with 43 additions and 0 deletions
|
|
@ -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
42
modules/man.nix
Normal 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"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue