Hyprland: Difference between revisions

drop heading for new NixOS version
Hannses (talk | contribs)
screensharing
 
(3 intermediate revisions by 2 users not shown)
Line 88: Line 88:
</nowiki>}}
</nowiki>}}


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. '''Note that the''' <code>hardware.opengl</code> '''option only exists 24.05 and below'''. 


{{file|configuration.nix|nix|<nowiki>
{{file|configuration.nix|nix|<nowiki>
Line 115: Line 115:
}
}
</nowiki>}}
</nowiki>}}
=== Screensharing ===
{{file|configuration.nix|nix|<nowiki>
{
  xdg.portal = {
    enable = true;
    extraPortals = with pkgs; [ xdg-desktop-portal-hyprland ];
  };
}
</nowiki>}}


=== Display Manager Support ===
=== Display Manager Support ===
Line 234: Line 245:


     iconTheme = {
     iconTheme = {
       package = pkgs.gnome.adwaita-icon-theme;
       package = pkgs.adwaita-icon-theme;
       name = "Adwaita";
       name = "Adwaita";
     };
     };
Line 246: Line 257:
</nowiki>}}
</nowiki>}}


or use set themes using dconf in your Hyprland configuration file:
or set themes using dconf in your Hyprland configuration file:
{{file|hyprland.conf|conf|<nowiki>
{{file|hyprland.conf|conf|<nowiki>
exec-once = dconf write /org/gnome/desktop/interface/gtk-theme "'Adwaita'"
exec-once = dconf write /org/gnome/desktop/interface/gtk-theme "'Adwaita'"