aboutsummaryrefslogtreecommitdiffstats
path: root/modules/system/hardware
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/hardware')
-rw-r--r--modules/system/hardware/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/system/hardware/default.nix b/modules/system/hardware/default.nix
index acf9fb2e..af20ddcd 100644
--- a/modules/system/hardware/default.nix
+++ b/modules/system/hardware/default.nix
@@ -36,7 +36,7 @@ in {
# TODO: Remove the support for the old keyboards <2024-05-16>
services.udev.extraRules =
- lib.mkIf cfg.moonlander.enableLiveTraining ''
+ lib.strings.optionalString cfg.moonlander.enableLiveTraining ''
# Rules for Oryx web flashing and live training
KERNEL=="hidraw*", ATTRS{idVendor}=="16c0", MODE="0664", GROUP="plugdev"
KERNEL=="hidraw*", ATTRS{idVendor}=="3297", MODE="0664", GROUP="plugdev"
@@ -51,7 +51,7 @@ in {
# Rule for the Planck EZ
SUBSYSTEM=="usb", ATTR{idVendor}=="feed", ATTR{idProduct}=="6060", GROUP="plugdev"
''
- + lib.mkIf cfg.moonlander.enableFlashing
+ + lib.strings.optionalString cfg.moonlander.enableFlashing
''
# Wally Flashing rules for the Ergodox EZ
ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", ENV{ID_MM_DEVICE_IGNORE}="1"