hosts/base/hardware.nix

8 lines
260 B
Nix
Raw Normal View History

{ pkgs, ... }:
{
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"
'';
}