nixos-config/components/gui/wayland.nix
Ingolf Wagner 7a6510a4e6
nix fmt
2024-08-29 08:26:04 +07:00

18 lines
315 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 && config.components.gui.enable) {
programs.sway.enable = false;
};
}