fix(gpu): remove i915 from initrd when arc is set

This commit is contained in:
514fpv 2024-03-29 11:02:13 +08:00
parent bce6dcc5fd
commit c46ba19ad7
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw

View file

@ -94,7 +94,7 @@ in {
boot.initrd.kernelModules =
optional amdgpu "amdgpu" ++
optional intel "i915" ++
optional (intel && cfg.arc == null) "i915" ++
optionals nvidia [ "nvidia" "nvidia_drm" "nvidia_modeset" "nvidia_uvm" ] ++
optional (cfg.arc != null) "vfio-pci";