nixos-config/components/gui/wayland.nix

14 lines
307 B
Nix
Raw Permalink Normal View History

2024-05-03 23:43:26 +02:00
{ config, pkgs, lib, ... }:
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
};
}