summaryrefslogtreecommitdiffstats
path: root/makefu
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2018-08-06 17:51:29 +0200
committermakefu <github@syntax-fehler.de>2018-08-06 17:51:29 +0200
commitc9e81b8dfd2c70495a415b472d0c5874db2a2700 (patch)
tree6b4c1eeb624bde2752ae23a5bfe0e138b435d9b0 /makefu
parente48a0723a9679408d88ff3b2452ff78fe407e33a (diff)
ma hw/mceusb: use boot.kernelPatches
Diffstat (limited to 'makefu')
-rw-r--r--makefu/2configs/hw/mceusb.nix15
1 files changed, 7 insertions, 8 deletions
diff --git a/makefu/2configs/hw/mceusb.nix b/makefu/2configs/hw/mceusb.nix
index c1d6f565..069e6e7e 100644
--- a/makefu/2configs/hw/mceusb.nix
+++ b/makefu/2configs/hw/mceusb.nix
@@ -1,4 +1,4 @@
-{pkgs,...}:{
+{pkgs, lib, ...}:{
# Disable the MCE remote from acting like a keyboard. (We use lirc instead.)
services.xserver.inputClassSections = [''
Identifier "MCE USB Keyboard mimic blacklist"
@@ -6,13 +6,12 @@
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
- '';
- };
+ boot.kernelPatches = lib.singleton {
+ name = "enable-lirc";
+ patch = null;
+ extraConfig = ''
+ LIRC y
+ '';
};
}