mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-11-15 09:45:58 +01:00
1.5 KiB
1.5 KiB
weight | title |
---|---|
7 | Nix |
To install Hyprland on NixOS, we provide a NixOS and a Home Manager module.
{{< callout title=Note >}}
- (Required) NixOS Module: enables critical components needed to run
Hyprland properly
- Without this, you may have issues with XDG Portals, or missing session files in your Display Manager.
- (Optional) Home Manager module: lets you configure Hyprland declaratively
through Home Manager.
- This module configures Hyprland and adds it to your user's
$PATH
, but does not make certain system-level changes such as adding a desktop session file for your display manager. This is handled by the NixOS module once you enable it.
- This module configures Hyprland and adds it to your user's
{{< /callout >}}
NixOS module
{
programs.hyprland.enable = true;
# Optional, hint electron apps to use wayland:
# environment.sessionVariables.NIXOS_OZONE_WL = "1";
}
For more options, see module options.
For other NixOS options, see Hyprland on NixOS.
Home Manager module
Read Hyprland on Home Manager.
For the adventurous, @spikespaz has made a Hyprland module that can be used in Home Manager and NixOS. It can be found here.
Options and overrides
Read Options & Overrides.