summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/hw/mceusb.nix
blob: 069e6e7eb57a2285916257e4ef6d5a2eb492698f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{pkgs, lib, ...}:{
  # Disable the MCE remote from acting like a keyboard.  (We use lirc instead.)
  services.xserver.inputClassSections = [''
    Identifier   "MCE USB Keyboard mimic blacklist"
    Driver       "mceusb"
    MatchProduct "Media Center Ed. eHome Infrared Remote Transceiver (1934:5168)"
    Option       "Ignore" "on"
  ''];
  boot.kernelPatches = lib.singleton {
    name = "enable-lirc";
    patch = null;
    extraConfig = ''
      LIRC y
    '';
  };

}