framework/12th-gen-intel: fix blacklistedKernelModules using lib.mkIf

lib.mkIf returns an attrset, not a string, so it cannot be used
as a list element. Replace with lib.optional.

Fixes: error: expected a string but found a set: { _type = "if"; ... }
This commit is contained in:
Guillaume Cugnet 2026-03-18 10:21:30 +01:00
parent 80afbd13ee
commit 1b0b84259f
No known key found for this signature in database
GPG key ID: 3FA77EF5BBB4E3CB

View file

@ -25,10 +25,10 @@
# This enables the brightness and airplane mode keys to work # This enables the brightness and airplane mode keys to work
# https://community.frame.work/t/12th-gen-not-sending-xf86monbrightnessup-down/20605/11 # https://community.frame.work/t/12th-gen-not-sending-xf86monbrightnessup-down/20605/11
"hid-sensor-hub" "hid-sensor-hub"
# This fixes controller crashes during sleep ]
# https://community.frame.work/t/tracking-fn-key-stops-working-on-popos-after-a-while/21208/32 # This fixes controller crashes during sleep
(lib.mkIf (config.hardware.framework.enableKmod == false) "cros_ec_lpcs") # https://community.frame.work/t/tracking-fn-key-stops-working-on-popos-after-a-while/21208/32
]; ++ lib.optional (config.hardware.framework.enableKmod == false) "cros_ec_lpcs";
boot.kernelParams = [ boot.kernelParams = [
# For Power consumption # For Power consumption