2024-06-24 11:38:28 -04:00
|
|
|
# Enables the Hyprland desktop environment.
|
2024-08-02 17:55:48 -04:00
|
|
|
{ config, lib, ... }:
|
2024-06-24 11:38:28 -04:00
|
|
|
let
|
|
|
|
cfg = config.aux.system.ui.desktops.hyprland;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options = {
|
2024-09-08 11:58:56 -04:00
|
|
|
aux.system.ui.desktops.hyprland.enable = lib.mkEnableOption "Enables the Hyprland desktop environment.";
|
2024-06-24 11:38:28 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|