diff --git a/base/hardware.nix b/base/hardware.nix index 2195655..d7f0905 100644 --- a/base/hardware.nix +++ b/base/hardware.nix @@ -2,6 +2,6 @@ { services.udev.extraRules = '' # Keychron C2 function key fix - SUBSYSTEMS=="input", ATTRS{name}==Keychron C2", RUN+="${pkgs.coreutils}/bin/echo 0 | ${pkgs.coreutils}/bin/tee /sys/module/hid_apple/parameters/fnmode" + SUBSYSTEMS=="input", ATTRS{name}=="Keychron Keychron C2", RUN+="${pkgs.bash}/bin/bash -c 'echo 0 > /sys/module/hid_apple/parameters/fnmode'" ''; }