hyprland-wiki/pages/Nix/_index.md

49 lines
1.4 KiB
Markdown
Raw Normal View History

---
weight: 7
title: Nix
---
To install Hyprland on NixOS, we provide a NixOS and a Home Manager module.
2023-02-14 14:30:40 +01:00
{{< callout title=Note >}}
2023-12-14 19:02:45 +01:00
- _**(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._
{{< /callout >}}
2023-02-14 14:30:40 +01:00
## NixOS module
2022-12-18 14:20:19 +01:00
```nix
{
programs.hyprland.enable = true;
# Optional, hint electron apps to use wayland:
# environment.sessionVariables.NIXOS_OZONE_WL = "1";
}
```
2023-02-14 14:30:40 +01:00
For more options, see
[module options](https://search.nixos.org/options?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=hyprland).
2023-02-14 14:30:40 +01:00
2024-03-17 13:44:39 +01:00
For other NixOS options, see [Hyprland on NixOS](./Hyprland-on-NixOS).
2022-09-09 16:53:49 +02:00
2024-08-13 22:13:20 +02:00
## Home Manager module
2022-12-09 13:38:13 +01:00
2024-03-17 13:44:39 +01:00
Read [Hyprland on Home Manager](./Hyprland-on-Home-Manager).
2023-11-27 12:36:33 +01:00
2023-12-14 19:02:45 +01:00
For the adventurous, [@spikespaz](https://github.com/spikespaz) has made a
Hyprland module that can be used in Home Manager and NixOS. It can be found
[here](https://github.com/spikespaz/hyprland-nix).
2023-11-27 12:36:33 +01:00
## Options and overrides
2024-03-17 13:44:39 +01:00
Read [Options & Overrides](./Options-Overrides).