nixos/klipper: Fix working of assertion

Co-authored-by: Bernardo Meurer <bernardo@meurer.org>
This commit is contained in:
Van Tuan Vo 2022-03-21 23:47:20 +01:00 committed by GitHub
parent c49f15e87b
commit c8b873fcd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,7 +103,7 @@ in
}
{
assertion = foldl (a: b: a && b) true (mapAttrsToList (mcu: _: mcu != null -> (hasAttrByPath [ "${mcu}" "serial" ] cfg.settings)) cfg.firmware);
message = "Option klipper.settings.$mcu.serial is not set when klipper.firmware.$mcu is specified";
message = "Option klipper.settings.$mcu.serial must be set when klipper.firmware.$mcu is specified";
}
];