templates/system/modules/ui/desktops/hyprland.nix
Andre 54f4de49f4
Some checks are pending
Code Check / Run nixfmt and statix (push) Waiting to run
chore: Change template namespace to 'aux.system'
2024-06-16 12:53:16 -04:00

29 lines
563 B
Nix

# Enables the Hyprland desktop environment.
{
pkgs,
config,
lib,
...
}:
let
cfg = config.aux.system.ui.desktops.hyprland;
in
{
options = {
aux.system.ui.desktops.hyprland.enable = lib.mkEnableOption (
lib.mdDoc "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";
};
}