summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/hw/mceusb.nix
blob: c1d6f5651f153265b98d3e9f0d8d08f57ab8b6ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{pkgs,...}:{
  # 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.kernelPackages = builtins.trace "Using linux kernel 4.16, not latest" pkgs.linuxPackages_4_16;
  nixpkgs.config.packageOverrides = pkgs: {
    linux_4_16 = pkgs.linux_4_16.override {
        extraConfig = ''
          LIRC y
        '';
    };
  };

}