forked from mirrors/nixpkgs
nixos: doc: nixos-manual: fix assert
This commit is contained in:
parent
0f3b89bbed
commit
3c0cced272
|
@ -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`";
|
||||
}];
|
||||
|
||||
|
|
Loading…
Reference in a new issue