mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-26 21:09:42 +01:00
fix: intelgpu.loadInInitrd now does something
This commit is contained in:
parent
b09c46430f
commit
83dfb51306
1 changed files with 4 additions and 3 deletions
|
@ -16,14 +16,15 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
options.hardware.intelgpu.loadInInitrd =
|
options.hardware.intelgpu.loadInInitrd =
|
||||||
lib.mkEnableOption
|
lib.mkEnableOption "Load the Intel GPU kernel module at stage 1 boot. (Added to `boot.initrd.kernelModules`)"
|
||||||
"Load the Intel GPU kernel module at stage 1 boot. (Added to `boot.initrd.kernelModules`)"
|
|
||||||
// {
|
// {
|
||||||
default = true;
|
default = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
boot.initrd.kernelModules = [ config.hardware.intelgpu.driver ];
|
boot.initrd.kernelModules = lib.optionals config.hardware.intelgpu.loadInInitrd [
|
||||||
|
config.hardware.intelgpu.driver
|
||||||
|
];
|
||||||
|
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
VDPAU_DRIVER = lib.mkIf config.hardware.graphics.enable (lib.mkDefault "va_gl");
|
VDPAU_DRIVER = lib.mkIf config.hardware.graphics.enable (lib.mkDefault "va_gl");
|
||||||
|
|
Loading…
Reference in a new issue