3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/modules/services/hardware
Shea Levy 70378ad2b7 Add our firmware path to the in-kernel lookup path
Newer kernels (since torvalds/linux@abb139e75c) try to
read firmware directly from the filesystem before falling back to a
userspace helper (udev) if firmware cannot be found (in even newer
kernels, the fallback path can be disabled altogether). By default, only
certain paths in /lib/firmware* are searched, so this was initially not
helpful for NixOS.

Since torvalds/linux@2760284206 (which,
based on the commit message, was implemented just for NixOS, go us!),
though, an extra path can be dynamically prepended to the search path.
So do that, in three ways:

1. Pass a kernel command line option in case the module is built-in
2. Add a line to modprobe.conf in case the module isn't yet loaded by
activation-time
3. Add an activation script to set the option in /sys in case the module
is already loaded by activation-time.
2013-03-04 09:42:03 -05:00
..
acpid.nix Merge remote-tracking branch 'origin/systemd' 2013-01-21 12:45:50 +01:00
bluetooth.nix bluetooth: add the systemd unit needed for activation by recent bluez versions 2013-02-10 20:30:02 +02:00
nvidia-optimus.nix nixos support for nvidia optimus 2012-02-06 19:14:42 +00:00
pcscd.nix strip trailing whitespace; no functional change 2011-09-14 18:20:50 +00:00
pommed.nix Remove unnecessary (AFAICT) call to toPath 2012-11-15 23:07:05 +01:00
sane.nix scanner support: create scanner group. Users need to be in this group to access scanners. 2012-12-06 02:59:34 +02:00
udev.nix Add our firmware path to the in-kernel lookup path 2013-03-04 09:42:03 -05:00
udisks.nix strip trailing whitespace; no functional change 2011-09-14 18:20:50 +00:00
upower.nix Rename ‘system.build.systemd’ to ‘systemd.package’ 2013-01-16 13:17:57 +01:00