From 01698a9baaad99a010ffe2e53762f480f39ff1ae Mon Sep 17 00:00:00 2001 From: David Guibert Date: Fri, 3 May 2024 17:05:10 +0200 Subject: [PATCH] klipper: fix $mcu.serial guard when $mcu.enableKlipperFlash This patch allows to set $mcu.canbus_uuid by setting $mcu.enableKlipperFlash to false. --- nixos/modules/services/misc/klipper.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/klipper.nix b/nixos/modules/services/misc/klipper.nix index 223bc8125915..78bd208ca1b6 100644 --- a/nixos/modules/services/misc/klipper.nix +++ b/nixos/modules/services/misc/klipper.nix @@ -217,7 +217,7 @@ in } ] ++ lib.mapAttrsToList (mcu: firmware: { - assertion = firmware.enable -> firmware.serial != null; + assertion = firmware.enableKlipperFlash -> firmware.serial != null; message = '' Unable to determine the serial connection for services.klipper.firmwares."${mcu}". Please set one of the following: