3
0
Fork 0
forked from mirrors/nixpkgs

nixos: doc: nixos-manual: fix assert

This commit is contained in:
Jan Malakhovski 2018-09-24 21:00:49 +00:00
parent 0f3b89bbed
commit 3c0cced272

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`";
}];