Skip to content

Commit

Permalink
nixos/mesa-git: rename hardware.opengl -> hardware.graphics (#767)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMaxMur committed Jun 21, 2024
1 parent 1b67ffd commit 109a95c
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions modules/nixos/mesa-git.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ let
has32 = pkgs.stdenv.hostPlatform.isLinux && pkgs.stdenv.hostPlatform.isx86;

methodReplace = {
hardware.opengl = with lib; {
hardware.graphics = with lib; {
enable = mkForce true;
package = mkForce pkgs.mesa_git.drivers;
package32 = mkForce pkgs.mesa32_git.drivers;
extraPackages = mkForce cfg.extraPackages;
extraPackages32 = mkForce cfg.extraPackages32;
driSupport = mkForce true;
driSupport32Bit = mkForce has32;
setLdLibraryPath = mkForce false;
enable32Bit = mkForce has32;
};

system.replaceRuntimeDependencies = [
Expand All @@ -30,15 +28,13 @@ let
};
in
{
hardware.opengl = with lib; {
hardware.graphics = with lib; {
enable = mkForce true;
package = mkForce pkgs.mesa_git.drivers;
package32 = mkForce pkgs.mesa32_git.drivers;
extraPackages = mkForce (cfg.extraPackages ++ [ pkgs.mesa_git.gbm ]);
extraPackages32 = mkForce cfg.extraPackages32;
driSupport = mkForce true;
driSupport32Bit = mkForce has32;
setLdLibraryPath = mkForce false;
enable32Bit = mkForce has32;
};

systemd.services.display-manager.environment = variables // {
Expand Down

1 comment on commit 109a95c

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All packages were built and cached successfully! (332 not suitable for building)

Please sign in to comment.