Hyprland: Difference between revisions

drop heading for new NixOS version
LucasFA (talk | contribs)
Hyprland Flake: Update for the hardware.opengl -> hardware.graphics migration
 
(4 intermediate revisions by 3 users not shown)
Line 94: Line 94:
   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.opengl = {
   hardware.graphics = {
     package = pkgs-unstable.mesa.drivers;
     package = pkgs-unstable.mesa.drivers;


     # if you also want 32-bit support (e.g for Steam)
     # if you also want 32-bit support (e.g for Steam)
     driSupport32Bit = true;
     enable32Bit = true;
     package32 = pkgs-unstable.pkgsi686Linux.mesa.drivers;
     package32 = pkgs-unstable.pkgsi686Linux.mesa.drivers;
   };
   };
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'"