Hyprland: Difference between revisions

Phobos (talk | contribs)
m added link
m Update deprecated use of `mesa.drivers` to `mesa`
Line 90: Line 90:
If you experience performance drops in video games or graphics tools like Blender on stable NixOS, then it's likely a [[Mesa]] version mismatch with Hyprland and the rest of your system. This can be fixed by substituting the system's mesa package with Hyprland's own.
If you experience performance drops in video games or graphics tools like Blender on stable NixOS, then it's likely a [[Mesa]] version mismatch with Hyprland and the rest of your system. This can be fixed by substituting the system's mesa package with Hyprland's own.


{{file|configuration.nix|nix|<nowiki>
{{file|3=<nowiki>
{pkgs, inputs, ...}: let
{pkgs, inputs, ...}: let
   pkgs-unstable = inputs.hyprland.inputs.nixpkgs.legacyPackages.${pkgs.stdenv.hostPlatform.system};
   pkgs-unstable = inputs.hyprland.inputs.nixpkgs.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in {
in {
   hardware.graphics = {
   hardware.graphics = {
     package = pkgs-unstable.mesa.drivers;
     package = pkgs-unstable.mesa;


     # if you also want 32-bit support (e.g for Steam)
     # if you also want 32-bit support (e.g for Steam)
     enable32Bit = true;
     enable32Bit = true;
     package32 = pkgs-unstable.pkgsi686Linux.mesa.drivers;
     package32 = pkgs-unstable.pkgsi686Linux.mesa;
   };
   };
}
}
</nowiki>}}
</nowiki>|name=configuration.nix|lang=nix}}


==== Cachix ====
==== Cachix ====