Nix
Hyprland on Other Distros

Hyprland on Other Distros

If you use Nix on distros other than NixOS, you can still use Hyprland.
The best option for advanced users would be through Home Manager.

However, for most people, Home Manager is too complicated and not worth it outside NixOS. In those cases, Hyprland can be installed as a normal package.
First, install nix with your system’s package manager (usually just called nix), then enable flakes, by adding this to /etc/nix/nix.conf or ~/.config/nix/nix.conf:

experimental-features = nix-command flakes

once that is done, install Hyprland through nix profile:

The easiest method is to get Hyprland directly from Nixpkgs:

nix profile install nixpkgs#hyprland

[!NOTE] Make sure to enable Cachix first.

nix profile install github:hyprwm/Hyprland

Installing Hyprland (and other hypr* tools) can be done like so:

nix profile install github:hyprwm/hyprnix#hyprland

Replace #hyprland with a different app from the flake to install it (e.g. #hyprpaper)

Since you’re using Hyprland outside of NixOS, it won’t be able to find graphics drivers.
To get around that, you can use nixGL.

Just install it like so:

nix profile install github:guibou/nixGL --impure

--impure is needed due to nixGL’s reliance on hardware information.

Since 0.54, start-hyprland will automatically use nixGL if needed. For versions before that, you must use nixGL start-hyprland.

Upgrading

In order to upgrade all your packages, you can run:

nix profile upgrade '.*'

Check the nix profile command documentation for other upgrade options.

Last updated on