common/gpu/intel*: Migrate to common/gpu/intel/* and add disable

This commit is contained in:
Kiskae
2023-02-27 13:59:06 +01:00
parent 2a483ad9cd
commit d7a5d6a29a
6 changed files with 32 additions and 13 deletions

View File

@@ -0,0 +1,15 @@
{ config, lib, pkgs, ... }:
{
boot.initrd.kernelModules = [ "i915" ];
environment.variables = {
VDPAU_DRIVER = lib.mkIf config.hardware.opengl.enable (lib.mkDefault "va_gl");
};
hardware.opengl.extraPackages = with pkgs; [
vaapiIntel
libvdpau-va-gl
intel-media-driver
];
}

View File

@@ -0,0 +1,7 @@
{ lib, ... }:
{
boot.blacklistedKernelModules = lib.mkDefault [ "i915" ];
# KMS will load the module, regardless of blacklisting
boot.kernelParams = lib.mkDefault [ "i915.modeset=0" ];
}