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

27 lines
550 B
Nix
Raw Permalink Normal View History

# Enables the Hyprland desktop environment.
2024-12-06 16:46:10 +00:00
{
config,
lib,
namespace,
...
}:
let
2024-12-06 16:46:10 +00:00
cfg = config.${namespace}.ui.desktops.hyprland;
in
{
options = {
2024-12-06 16:46:10 +00:00
${namespace}.ui.desktops.hyprland.enable = lib.mkEnableOption "Enables the Hyprland desktop environment.";
};
config = lib.mkIf cfg.enable {
2024-12-06 16:46:10 +00:00
${namespace}.ui.desktops.enable = true;
programs.hyprland = {
enable = true;
xwayland.enable = true;
};
# Optional: hint Electron apps to use Wayland:
environment.sessionVariables.NIXOS_OZONE_WL = "1";
};
}