fix falsely installing wayland everywhere with no x

This commit is contained in:
Ingolf Wagner 2024-08-07 11:46:42 +02:00
parent 0007efe1ed
commit 2dbfc2a61e
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 { options.components.gui.wayland.enable = mkOption {
type = lib.types.bool; type = lib.types.bool;
default = ! config.components.gui.xorg.enable; default = !config.components.gui.xorg.enable;
}; };
config = mkIf config.components.gui.wayland.enable { config = mkIf (config.components.gui.wayland.enable && config.components.gui.enable) {
programs.hyprland.enable = true; programs.sway.enable = false;
}; };
} }

View file

@ -9,7 +9,7 @@ with lib;
default = config.components.gui.enable; 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; # system.custom.fonts.enable = true;
services.displayManager = { services.displayManager = {