nixos/udev: set firmware path in a separate modprobe.d file

This way we don't bloat ramdisk with the whole Linux firmware packages.
This commit is contained in:
Nikolay Amiantov 2022-02-02 22:58:27 +03:00
parent 3dc6fab5c9
commit 2b3f77b716

View File

@ -317,7 +317,8 @@ in
(isYes "NET")
];
boot.extraModprobeConfig = "options firmware_class path=${config.hardware.firmware}/lib/firmware";
# We don't place this into `extraModprobeConfig` so that stage-1 ramdisk doesn't bloat.
environment.etc."modprobe.d/firmware.conf".text = "options firmware_class path=${config.hardware.firmware}/lib/firmware";
system.activationScripts.udevd =
''