Nix/Hyprland on NixOS: Change hardware.opengl to hardware.graphics (#1056)

hardware.opengl has been deprecated in nixpkgs since 24.11
This commit is contained in:
Saygo 2025-05-04 20:21:08 +02:00 committed by GitHub
parent f7ebd8178d
commit a38c1e5a5e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -100,7 +100,7 @@ You can fix this issue by using `mesa` from Hyprland's `nixpkgs` input:
{pkgs, inputs, ...}: let
pkgs-unstable = inputs.hyprland.inputs.nixpkgs.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in {
hardware.opengl = {
hardware.graphics = {
package = pkgs-unstable.mesa.drivers;
# if you also want 32-bit support (e.g for Steam)