fix(nixos:hardware) hardware.opengl -> hardware.graphics
This commit is contained in:
parent
bd899fb160
commit
42570b6d00
5 changed files with 26 additions and 13 deletions
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue