fix falsely installing wayland everywhere with no x

This commit is contained in:
Ingolf Wagner 2024-08-07 11:46:42 +02:00
parent 1b60bfbe21
commit b7a259bf39
Signed by: palo
GPG key ID: 76BF5F1928B9618B
2 changed files with 4 additions and 4 deletions

View file

@ -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;
};
}

View file

@ -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 = {