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-04 17:47:32 +03:00
parent 3dc6fab5c9
commit 2b3f77b716
+2 -1
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 =
''