2024-05-03 23:43:26 +02:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
|
|
|
|
|
|
options.components.gui.wayland.enable = mkOption {
|
|
|
|
type = lib.types.bool;
|
2024-08-07 11:07:10 +02:00
|
|
|
default = !config.components.gui.xorg.enable;
|
2024-05-03 23:43:26 +02:00
|
|
|
};
|
|
|
|
|
2024-08-07 11:07:10 +02:00
|
|
|
config = mkIf (config.components.gui.wayland.enable && config.components.gui.enable) {
|
|
|
|
programs.sway.enable = false;
|
2024-05-03 23:43:26 +02:00
|
|
|
};
|
|
|
|
}
|