diff --git a/components/gui/wayland.nix b/components/gui/wayland.nix index 1aeed23..9b7b871 100644 --- a/components/gui/wayland.nix +++ b/components/gui/wayland.nix @@ -4,10 +4,10 @@ with lib; options.components.gui.wayland.enable = mkOption { type = lib.types.bool; - default = ! config.components.gui.xorg.enable; + default = !config.components.gui.xorg.enable; }; - config = mkIf config.components.gui.wayland.enable { - programs.hyprland.enable = true; + config = mkIf (config.components.gui.wayland.enable && config.components.gui.enable) { + programs.sway.enable = false; }; } diff --git a/components/gui/xorg/default.nix b/components/gui/xorg/default.nix index 2da2dd3..27f04f3 100644 --- a/components/gui/xorg/default.nix +++ b/components/gui/xorg/default.nix @@ -9,7 +9,7 @@ with lib; default = config.components.gui.enable; }; - config = mkIf config.components.gui.xorg.enable { + config = mkIf (config.components.gui.xorg.enable && config.components.gui.enable) { # system.custom.fonts.enable = true; services.displayManager = {