From 83dfb513067529148cec3ce406b0583484d2056d Mon Sep 17 00:00:00 2001 From: jaredmontoya <49511278+jaredmontoya@users.noreply.github.com> Date: Sat, 24 Aug 2024 00:59:43 +0200 Subject: [PATCH] fix: intelgpu.loadInInitrd now does something --- common/gpu/intel/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/common/gpu/intel/default.nix b/common/gpu/intel/default.nix index 54f4eec..bc732cc 100644 --- a/common/gpu/intel/default.nix +++ b/common/gpu/intel/default.nix @@ -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");