From eca253b7c9b3a7458301340dded07ba19ca01614 Mon Sep 17 00:00:00 2001 From: "Gustavo \"Guz\" L de Mello" Date: Wed, 5 Feb 2025 17:04:57 -0300 Subject: [PATCH] refactor: use newer option hardware.graphics instead of hardware.opengl --- hosts/battleship/gpu-configuration.nix | 4 ++-- hosts/fighter/configuration.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hosts/battleship/gpu-configuration.nix b/hosts/battleship/gpu-configuration.nix index 54d7db2..beade75 100644 --- a/hosts/battleship/gpu-configuration.nix +++ b/hosts/battleship/gpu-configuration.nix @@ -14,8 +14,8 @@ boot.kernelModules = ["amdgpu"]; boot.initrd.kernelModules = ["amdgpu"]; - hardware.opengl.enable = true; - hardware.opengl.extraPackages = with pkgs; [ + hardware.graphics.enable = true; + hardware.graphics.extraPackages = with pkgs; [ amdvlk rocmPackages.clr.icd vaapiVdpau diff --git a/hosts/fighter/configuration.nix b/hosts/fighter/configuration.nix index 26ee575..8ac5464 100644 --- a/hosts/fighter/configuration.nix +++ b/hosts/fighter/configuration.nix @@ -20,8 +20,8 @@ }); # Enable OpenGL - hardware.opengl.enable = true; - hardware.opengl.extraPackages = with pkgs; [ + hardware.graphics.enable = true; + hardware.graphics.extraPackages = with pkgs; [ onevpl-intel-gpu ];