LIRC: Difference between revisions

imported>Makefu
Created page with "== Enable LIRC support in the kernel == Currently (2018-07-23) the NixOS kernel is not compiled with LIRC support, therefore no <code>/dev/lirc0</code> will appear when you ad..."
 
imported>Samueldr
m Fixes syntax issue with mediawiki (+ add breathing room to first paragraph)
Line 1: Line 1:
== Enable LIRC support in the kernel ==
== Enable LIRC support in the kernel ==
Currently (2018-07-23) the NixOS kernel is not compiled with LIRC support, therefore no <code>/dev/lirc0</code> will appear when you add an IR receiver.
Currently (2018-07-23) the NixOS kernel is not compiled with LIRC support, therefore no <code>/dev/lirc0</code> will appear when you add an IR receiver.
To enable LIRC support for NixOS you will need to recompile your kernel with <code>CONFIG_LIRC=y</code>. With NixOS the <code>boot.kernelPatches</code> option can be used:
To enable LIRC support for NixOS you will need to recompile your kernel with <code>CONFIG_LIRC=y</code>.
 
With NixOS the <code>boot.kernelPatches</code> option can be used:
<syntaxHighlight lang=nix>
<syntaxHighlight lang=nix>
{ lib, ... }:
{ lib, ... }:
Line 23: Line 25:
You can build upon this to create your own service with <code>sytemd.services</code>.
You can build upon this to create your own service with <code>sytemd.services</code>.
== References ==
== References ==
* [[https://discourse.nixos.org/t/the-correct-way-to-override-the-latest-kernel-config/533/2 Discourse Discussion]]
* [https://discourse.nixos.org/t/the-correct-way-to-override-the-latest-kernel-config/533/2 Discourse Discussion]