Make GNOME respect x11 vs wayland choice

This commit is contained in:
Sravan Balaji
2024-03-27 20:04:46 -04:00
parent 9631d6110e
commit 87e1df7818
3 changed files with 7 additions and 3 deletions

View File

@@ -2,7 +2,6 @@
{
imports = [
./x11.nix
./fonts.nix
];
}

View File

@@ -4,6 +4,7 @@
imports = [
./default.nix
./lightdm.nix
./x11.nix
];
services.xserver.windowManager.dwm.enable = true;

View File

@@ -1,10 +1,14 @@
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, userSettings, ... }:
{
imports = [
./default.nix
(if userSettings.desktopType == "x11" then ./x11.nix else "")
];
services.xserver.displayManager.gdm.enable = true;
services.xserver.displayManager.gdm = {
enable = true;
wayland = (if userSettings.desktopType == "x11" then false else true);
};
services.xserver.desktopManager.gnome.enable = true;
}