Re-enable installer documentation

This commit is contained in:
Jack O'Sullivan 2022-02-21 01:15:27 +00:00
parent 810ddc76af
commit 953770f339
4 changed files with 6 additions and 3 deletions

View File

@ -42,6 +42,8 @@ let
options = {
inherit (commonOpts) system nixpkgs home-manager;
# TODO: docCustom for home-manager?
# Not possible I think, the doc generation code only ever includes its own modules...
# (https://github.com/nix-community/home-manager/blob/0232fe1b75e6d7864fd82b5c72f6646f87838fc3/docs/default.nix#L37)
homeDirectory = mkOpt' str null "Absolute path to home directory.";
username = mkOpt' str null "Username for the configuration.";

View File

@ -98,6 +98,7 @@ let
inherit (commonOpts) system nixpkgs home-manager;
hmNixpkgs = commonOpts.nixpkgs;
# This causes a (very slow) docs rebuild on every change to a module's options it seems
# TODO: Currently broken with infinite recursion...
docCustom = mkBoolOpt' false "Whether to document nixfiles' custom NixOS modules.";
configuration = mkOption {

View File

@ -80,9 +80,8 @@
# Much of this onwards is yoinked from modules/profiles/installation-device.nix
# Good to have docs in the installer!
# TODO: docs rebuilding every time?
documentation.enable = mkForce false;
documentation.nixos.enable = mkForce false;
documentation.enable = mkForce true;
documentation.nixos.enable = mkForce true;
# Enable wpa_supplicant, but don't start it by default.
networking.wireless.enable = mkDefault true;

View File

@ -65,6 +65,7 @@ in
};
documentation = {
enable = mkDefault true;
nixos = {
enable = mkDefault true;
options.warningsAreErrors = mkDefault false;