Merge pull request #1084 from jaredmontoya/master

🛠 Fix intelgpu.loadInInitrd (it now does something)
This commit is contained in:
Jörg Thalheim authored and GitHub committed 2024-08-24 11:59:10 +02:00
commit 851a39248f
1 file changed
+4 -3
+4 -3
View File
@@ -16,14 +16,15 @@
};
options.hardware.intelgpu.loadInInitrd =
lib.mkEnableOption
"Load the Intel GPU kernel module at stage 1 boot. (Added to `boot.initrd.kernelModules`)"
lib.mkEnableOption "Load the Intel GPU kernel module at stage 1 boot. (Added to `boot.initrd.kernelModules`)"
// {
default = true;
};
config = {
boot.initrd.kernelModules = [ config.hardware.intelgpu.driver ];
boot.initrd.kernelModules = lib.optionals config.hardware.intelgpu.loadInInitrd [
config.hardware.intelgpu.driver
];
environment.variables = {
VDPAU_DRIVER = lib.mkIf config.hardware.graphics.enable (lib.mkDefault "va_gl");