nixpkgs/nixos/doc/manual
Arian van Putten 2e75a7b516 nixos: doc: optionally include all modules in manual generation
Before this change `man 5 configuration.nix` would only show options of modules in
the `baseModules` set, which consists only of the list of modules in
`nixos/modules/module-list.nix`

With this change applied and `documentation.nixos.includeAllModules` option enabled
all modules included in `configuration.nix` file will be used instead.

This makes configurations with custom modules self-documenting. It also means
that importing non-`baseModules` modules like `gce.nix` or `azure.nix`
will make their documentation available in `man 5 configuration.nix`.

`documentation.nixos.includeAllModules` is currently set to `false` by
default as enabling it usually uncovers bugs and prevents evaluation.
It should be set to `true` in a release or two.

This was originally implemented in #47177, edited for more configurability,
documented and rebased onto master by @oxij.
2019-03-05 09:41:40 +00:00
..
administration
configuration nixos/doc: Small updates about wireless configuration. (#55918) 2019-03-05 04:27:15 +02:00
development nixos release: there's a wildcard protection now for release-* on github 2019-02-26 14:12:46 +07:00
installation nixos/doc: Small updates about wireless configuration. (#55918) 2019-03-05 04:27:15 +02:00
release-notes nixos: doc: optionally include all modules in manual generation 2019-03-05 09:41:40 +00:00
.gitignore
default.nix nixos/manual: warn on missing xml:id 2019-02-07 16:35:24 +01:00
Makefile
man-configuration.xml
man-nixos-build-vms.xml
man-nixos-enter.xml
man-nixos-generate-config.xml nixos: doc typo and ws 2018-11-16 22:44:55 +01:00
man-nixos-install.xml
man-nixos-option.xml
man-nixos-rebuild.xml nixos/manual: fix build 2019-03-02 10:32:24 +00:00
man-nixos-version.xml
man-pages.xml
manual.xml
options-to-docbook.xsl
postprocess-option-descriptions.xsl
README
shell.nix

To build the manual, you need Nix installed on your system (no need
for NixOS). To install Nix, follow the instructions at

    https://nixos.org/nix/download.html

When you have Nix on your system, in the root directory of the project
(i.e., `nixpkgs`), run:

    nix-build nixos/release.nix -A manual.x86_64-linux

When this command successfully finishes, it will tell you where the
manual got generated.