diff --git a/modules/default.nix b/modules/default.nix index 2aec22a..37b5c84 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -18,6 +18,7 @@ ./timezone.nix ./user.nix ./systemd.nix + ./man.nix ]; # Enable CUPS to print documents. diff --git a/modules/man.nix b/modules/man.nix new file mode 100644 index 0000000..bc93b5c --- /dev/null +++ b/modules/man.nix @@ -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" + ]; + }; +}