Hyprland: Difference between revisions

m Add links to display manager wiki pages (but only greetd exists right now)
Phobos (talk | contribs)
m Added link for UWSM Page, added warning for home manager module
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]]. [[UWSM|Options for configuring UWSM may be found here]].


{{file|configuration.nix|nix|<nowiki>
{{file|||<nowiki>
{
{
   programs.hyprland = {
   programs.hyprland = {
Line 20: Line 20:
   };
   };
}
}
</nowiki>}}
</nowiki>|name=/etc/nixos/configuration.nix|lang=nix}}{{Warning|If you use the Home Manager module, make sure to disable systemd integration, as it conflicts with UWSM.
</br>
{{File|3=wayland.windowManager.hyprland.systemd.enable = false;
|name=/etc/nixos/home.nix|lang=nix}}}}


=== Nix on Non-NixOS Systems ===
=== Nix on Non-NixOS Systems ===
Line 140: Line 143:
Home Manager allows for  declarative configuration of Hyprland using Nix syntax.
Home Manager allows for  declarative configuration of Hyprland using Nix syntax.


{{file|/etc/nixos/home.nix or ~/.config/home-manager/home.nix|nix|<nowiki>
{{file|||3={
{
   wayland.windowManager.hyprland.settings = {
   wayland.windowManager.hyprland.settings = {
     decoration = {
     decoration = {
Line 158: Line 160:
   };
   };
   # ...
   # ...
}
}|name=/etc/nixos/home.nix or ~/.config/home-manager/home.nix|lang=nix}}
</nowiki>}}


== Plugin Support ==
== Plugin Support ==