fix falsely installing wayland everywhere with no x
This commit is contained in:
parent
1b60bfbe21
commit
b7a259bf39
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue