Hyprland on NixOS
Hyprland on NixOS
Installing Hyprland on NixOS
You can install Hyprland from:
- The Nixpkgs repository if you want a proper released version from Hyprland.
- The Hyprland flake if you want the latest git commit available at the moment.
- Flake-compat if you want to use the Hyprland flake, but don’t want to enable the use of flakes in your NixOS system.
configuration.nix
{
programs.hyprland.enable = true;
}This will use the Hyprland version included in the Nixpkgs release you’re using.
Configuring Hyprland on NixOS
You need to choose one of the three ways for configuring Hyprland in Nix: Hjem, home manager, or the upstream module.
Hjem
Read Configuring Hyprland with Hjem.
Home Manager
Read Configuring Hyprland with 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.
The upstream module
The upstream module provides options similar to the ones in the Home Manager module.
To use it, simply add
{inputs, ...}: {
imports = [inputs.hyprland.nixosModules.default];
programs.hyprland = {
# usual Nixpkgs module options
plugins = [
#...
];
settings = {
# ...
};
};
}Last updated on