nixos-config/nixos/components/gui/wayland.nix
2024-05-03 23:43:26 +02:00

13 lines
277 B
Nix

{ config, pkgs, lib, ... }:
with lib;
{
options.components.gui.wayland.enable = mkOption {
type = lib.types.bool;
default = ! config.components.gui.xorg.enable;
};
config = mkIf config.components.gui.wayland.enable {
programs.hyprland.enable = true;
};
}