2024-06-24 15:38:28 +00:00
|
|
|
# Enables the Hyprland desktop environment.
|
2024-12-06 18:04:47 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
namespace,
|
|
|
|
...
|
|
|
|
}:
|
2024-06-24 15:38:28 +00:00
|
|
|
let
|
2024-12-06 18:04:47 +00:00
|
|
|
cfg = config.${namespace}.ui.desktops.hyprland;
|
2024-06-24 15:38:28 +00:00
|
|
|
in
|
|
|
|
{
|
|
|
|
options = {
|
2024-12-06 20:21:21 +00:00
|
|
|
${namespace}.ui.desktops.hyprland.enable =
|
|
|
|
lib.mkEnableOption "Enables the Hyprland desktop environment.";
|
2024-06-24 15:38:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
2024-12-06 18:04:47 +00:00
|
|
|
${namespace}.ui.desktops.enable = true;
|
2024-06-24 15:38:28 +00:00
|
|
|
|
|
|
|
programs.hyprland = {
|
|
|
|
enable = true;
|
|
|
|
xwayland.enable = true;
|
|
|
|
};
|
|
|
|
# Optional: hint Electron apps to use Wayland:
|
|
|
|
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
|
|
|
};
|
|
|
|
}
|