1
0
Fork 0
nix-configuration/modules/ui/desktops/hyprland.nix

22 lines
525 B
Nix
Raw Normal View History

# Enables the Hyprland desktop environment.
2024-08-02 21:55:48 +00:00
{ config, lib, ... }:
let
cfg = config.aux.system.ui.desktops.hyprland;
in
{
options = {
2024-09-08 15:58:56 +00:00
aux.system.ui.desktops.hyprland.enable = lib.mkEnableOption "Enables the Hyprland desktop environment.";
};
config = lib.mkIf cfg.enable {
aux.system.ui.desktops.enable = true;
programs.hyprland = {
enable = true;
xwayland.enable = true;
};
# Optional: hint Electron apps to use Wayland:
environment.sessionVariables.NIXOS_OZONE_WL = "1";
};
}