summary refs log tree commit diff
path: root/pkgs/os-specific/linux
diff options
context:
space:
mode:
authormisuzu <bakalolka@gmail.com>2021-06-23 17:41:35 +0300
committermisuzu <bakalolka@gmail.com>2021-07-14 18:20:22 +0300
commit3f63c29812e0f1fd1c8763e746de79ae08da4c10 (patch)
tree57e1fa694940b5949a90a979c8cb9be217e041d4 /pkgs/os-specific/linux
parentd8f8f31af9d77a48220e4e8a301d1e79774cb7d2 (diff)
downloadnixpkgs-3f63c29812e0f1fd1c8763e746de79ae08da4c10.tar
nixpkgs-3f63c29812e0f1fd1c8763e746de79ae08da4c10.tar.gz
nixpkgs-3f63c29812e0f1fd1c8763e746de79ae08da4c10.tar.bz2
nixpkgs-3f63c29812e0f1fd1c8763e746de79ae08da4c10.tar.lz
nixpkgs-3f63c29812e0f1fd1c8763e746de79ae08da4c10.tar.xz
nixpkgs-3f63c29812e0f1fd1c8763e746de79ae08da4c10.tar.zst
nixpkgs-3f63c29812e0f1fd1c8763e746de79ae08da4c10.zip
linux: enable LIRC
Diffstat (limited to 'pkgs/os-specific/linux')
-rw-r--r--pkgs/os-specific/linux/kernel/common-config.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix
index 355e653c8ea..fce451ee889 100644
--- a/pkgs/os-specific/linux/kernel/common-config.nix
+++ b/pkgs/os-specific/linux/kernel/common-config.nix
@@ -846,6 +846,8 @@ let
       X86_AMD_PLATFORM_DEVICE = yes;
       X86_PLATFORM_DRIVERS_DELL = whenAtLeast "5.12" yes;
 
+      LIRC = mkMerge [ (whenOlder "4.16" module) (whenAtLeast "4.17" yes) ];
+
     } // optionalAttrs (stdenv.hostPlatform.system == "x86_64-linux" || stdenv.hostPlatform.system == "aarch64-linux") {
       # Enable CPU/memory hotplug support
       # Allows you to dynamically add & remove CPUs/memory to a VM client running NixOS without requiring a reboot