hosts/base/hardware.nix

8 lines
249 B
Nix

{ pkgs, ... }:
{
services.udev.extraRules = ''
# Keychron C2 function key fix
SUBSYSTEMS=="input", ATTRS{name}=="Keychron Keychron C2", RUN+="${pkgs.bash}/bin/bash -c 'echo 0 > /sys/module/hid_apple/parameters/fnmode'"
'';
}