nixos-config/components/gui/wayland.nix

19 lines
315 B
Nix
Raw Normal View History

2024-08-29 03:26:04 +02:00
{
config,
pkgs,
lib,
...
}:
2024-05-03 23:43:26 +02:00
with lib;
{
options.components.gui.wayland.enable = mkOption {
type = lib.types.bool;
default = !config.components.gui.xorg.enable;
2024-05-03 23:43:26 +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
};
}