forked from auxolotl/templates
29 lines
542 B
Nix
29 lines
542 B
Nix
|
# Enables the Hyprland desktop environment.
|
||
|
{
|
||
|
pkgs,
|
||
|
config,
|
||
|
lib,
|
||
|
...
|
||
|
}:
|
||
|
let
|
||
|
cfg = config.aux.ui.desktops.hyprland;
|
||
|
in
|
||
|
{
|
||
|
options = {
|
||
|
aux.ui.desktops.hyprland.enable = lib.mkEnableOption (
|
||
|
lib.mdDoc "Enables the Hyprland desktop environment."
|
||
|
);
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
aux.ui.desktops.enable = true;
|
||
|
|
||
|
programs.hyprland = {
|
||
|
enable = true;
|
||
|
xwayland.enable = true;
|
||
|
};
|
||
|
# Optional: hint Electron apps to use Wayland:
|
||
|
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||
|
};
|
||
|
}
|