nixos-config/components/gui/wayland.nix
Ingolf Wagner d5f1ef4af6
All checks were successful
Build all NixOS Configurations / nix build (push) Successful in 7m44s
extract nixos.boot.ssh and set up probe
2024-08-07 21:39:32 +02:00

14 lines
307 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;
};
}