Skip to content

Commit

Permalink
Nix: mesa mismatch info (#542)
Browse files Browse the repository at this point in the history
* Warn people to use the latest mesa version when using the Hyprland flake

Co-authored-by: Mihai Fufezan <[email protected]>
  • Loading branch information
coffeeispower and fufexan authored Mar 17, 2024
1 parent 22d5e48 commit 8e5e35c
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions pages/Nix/Hyprland on NixOS.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,33 @@ this:

Don't forget to change the `HOSTNAME` to your actual hostname!

{{< callout >}}

If you start experiencing lag and FPS drops in games or programs like Blender on
**stable** NixOS when using the Hyprland flake, it most likely is a `mesa`
version mismatch between your system and Hyprland.

You can fix this issue by using `mesa` from Hyprland's `nixpkgs` input:

```nix
{pkgs, inputs, ...}: let
pkgs-unstable = inputs.hyprland.inputs.nixpkgs.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in {
hardware.opengl = {
package = pkgs-unstable.mesa.drivers;
# if you also want 32-bit support (e.g for Steam)
driSupport32Bit = true;
package32 = pkgs-unstable.pkgsi686Linux.mesa.drivers;
};
}
```

For more details, see
[issue #5148](https://github.com/hyprwm/Hyprland/issues/5148).

{{< /callout >}}

{{< /tab >}}

{{< tab "Flake package, Nix stable" >}}
Expand Down

0 comments on commit 8e5e35c

Please sign in to comment.