Hyprland: Difference between revisions
→Theme Support: Add line about using graphical programs to set themes. |
→Hyprland Flake: Update for the hardware.opengl -> hardware.graphics migration |
||
| (6 intermediate revisions by 4 users not shown) | |||
| Line 10: | Line 10: | ||
== Installation == | == Installation == | ||
NixOS 24.11 added support for launching Hyprland with [https://github.com/Vladimir-csp/uwsm Universal Wayland Session Manager] (UWSM) and is the recommended way to launch Hyprland as it neatly integrates with [[Systemd]]. | NixOS 24.11 added support for launching Hyprland with [https://github.com/Vladimir-csp/uwsm Universal Wayland Session Manager] (UWSM) and is the recommended way to launch Hyprland as it neatly integrates with [[Systemd]]. | ||
| Line 18: | Line 17: | ||
enable = true; | enable = true; | ||
withUWSM = true; # recommended for most users | withUWSM = true; # recommended for most users | ||
xwayland.enable = true; # Xwayland can be disabled. | xwayland.enable = true; # Xwayland can be disabled. | ||
}; | }; | ||
| Line 106: | 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. | 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) | ||
enable32Bit = true; | |||
package32 = pkgs-unstable.pkgsi686Linux.mesa.drivers; | package32 = pkgs-unstable.pkgsi686Linux.mesa.drivers; | ||
}; | }; | ||
| Line 127: | 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 246: | Line 245: | ||
iconTheme = { | iconTheme = { | ||
package = pkgs | package = pkgs.adwaita-icon-theme; | ||
name = "Adwaita"; | name = "Adwaita"; | ||
}; | }; | ||
| Line 258: | Line 257: | ||
</nowiki>}} | </nowiki>}} | ||
or | 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'" | ||