From 3c0cced27208b2d80dc0a4b1e2637bf85d912388 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Mon, 24 Sep 2018 21:00:49 +0000 Subject: nixos: doc: nixos-manual: fix assert --- nixos/modules/services/misc/nixos-manual.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'nixos') diff --git a/nixos/modules/services/misc/nixos-manual.nix b/nixos/modules/services/misc/nixos-manual.nix index 023a933fd893..7202269d3421 100644 --- a/nixos/modules/services/misc/nixos-manual.nix +++ b/nixos/modules/services/misc/nixos-manual.nix @@ -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`"; }]; -- cgit 1.4.1 From 1a6ce11518af319e6029863a7f220c071ce5b467 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Mon, 24 Sep 2018 21:01:24 +0000 Subject: nixos: doc: fix minimal profile and installer configs --- nixos/modules/profiles/installation-device.nix | 2 +- nixos/modules/profiles/minimal.nix | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'nixos') diff --git a/nixos/modules/profiles/installation-device.nix b/nixos/modules/profiles/installation-device.nix index 22d1af426948..9c84d267a334 100644 --- a/nixos/modules/profiles/installation-device.nix +++ b/nixos/modules/profiles/installation-device.nix @@ -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; diff --git a/nixos/modules/profiles/minimal.nix b/nixos/modules/profiles/minimal.nix index dd81e61460cf..138eda117c74 100644 --- a/nixos/modules/profiles/minimal.nix +++ b/nixos/modules/profiles/minimal.nix @@ -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; } -- cgit 1.4.1