fix(nixos:hardware) hardware.opengl -> hardware.graphics

This commit is contained in:
ooks-io 2024-08-09 21:50:31 +12:00
parent bd899fb160
commit 42570b6d00
5 changed files with 26 additions and 13 deletions

View file

@ -11,7 +11,7 @@
in {
config = mkIf (elem gpu.type ["intel"]) {
services.xserver.videoDrivers = ["modesetting"];
hardware.opengl = {
hardware.graphics = {
extraPackages = with pkgs; [
vaapiIntel
vaapiVdpau
@ -29,7 +29,7 @@ in {
];
};
boot.initrd.kernelModules = ["i915"];
environment.variables = mkIf config.hardware.opengl.enable {
environment.variables = mkIf config.hardware.graphics.enable {
VDPAU_DRIVER = "va_gl";
};
};