mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
Set the firmware_class path in modprobe.d
Activation scripts are run before systemd is started, so unless users are loading firmware in the initrd (which AFAICT we currently have no support for) the previous /sys-based setting of firmware_class was ineffective on boot. Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
parent
ebb9f0e3fc
commit
9bc021ceda
1 changed files with 1 additions and 4 deletions
|
@ -228,10 +228,7 @@ in
|
|||
(isYes "NET")
|
||||
];
|
||||
|
||||
system.activationScripts.setFirmwarePath =
|
||||
''
|
||||
echo -n ${config.hardware.firmware} 2>/dev/null > /sys/module/firmware_class/parameters/path
|
||||
'';
|
||||
boot.extraModprobeConfig = "options firmware_class path=${config.hardware.firmware}";
|
||||
|
||||
system.activationScripts.clearHotplug =
|
||||
''
|
||||
|
|
Loading…
Reference in a new issue