hardware/gpu: hardware.opengl -> hardware.graphics

This commit is contained in:
Infinidoge 2024-07-26 10:48:10 -04:00
parent c399ad4200
commit 1645a8a3a8
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A
2 changed files with 5 additions and 5 deletions

View file

@ -14,9 +14,9 @@ in
config = mkMerge [
(mkIf (any' (with cfg; [ amdgpu nvidia intel ])) {
hardware.opengl = {
hardware.graphics = {
enable = true;
driSupport32Bit = true;
enable32Bit = true;
extraPackages = with pkgs; flatten [
libvdpau-va-gl

View file

@ -49,7 +49,7 @@ in
extraLibraries = pkgs:
let
prevLibs = if prev ? extraLibraries then prev.extraLibraries pkgs else [ ];
additionalLibs = with config.hardware.opengl;
additionalLibs = with config.hardware.graphics;
if pkgs.stdenv.hostPlatform.is64bit
then [ package ] ++ extraPackages
else [ package32 ] ++ extraPackages32;
@ -129,9 +129,9 @@ in
(mkIf cfg.enable {
# Taken from the programs.steam option, reimplemented here to move software into userland
hardware.opengl = {
hardware.graphics = {
enable = true;
driSupport32Bit = true;
enable32Bit = true;
};
hardware.pulseaudio.support32Bit = config.hardware.pulseaudio.enable;