Merge pull request #47298 from oxij/nixos/doc-in-installer

nixos: fix fallout from #46193
This commit is contained in:
Michael Raskin 2018-09-25 09:00:43 +00:00 committed by GitHub
commit 61abf3bbd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View file

@ -22,7 +22,7 @@ with lib;
config = {
# Enable in installer, even if the minimal profile disables it.
documentation.nixos.enable = mkForce true;
documentation.enable = mkForce true;
# Show the manual.
services.nixosManual.showManual = true;

View file

@ -12,7 +12,6 @@ with lib;
i18n.supportedLocales = [ (config.i18n.defaultLocale + "/UTF-8") ];
documentation.enable = mkDefault false;
documentation.nixos.enable = mkDefault false;
sound.enable = mkDefault false;
}

View file

@ -6,7 +6,10 @@
with lib;
let cfg = config.services.nixosManual; in
let
cfg = config.services.nixosManual;
cfgd = config.documentation;
in
{
@ -44,7 +47,7 @@ let cfg = config.services.nixosManual; in
config = mkIf cfg.showManual {
assertions = [{
assertion = config.documentation.nixos.enable;
assertion = cfgd.enable && cfgd.nixos.enable;
message = "Can't enable `service.nixosManual.showManual` without `documentation.nixos.enable`";
}];