From d41a2e33989efbe3843a26b73d3c2d38ca048c1e Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Wed, 2 Oct 2019 20:09:10 -0400 Subject: [PATCH] nixos/gdm: disable wayland when modesetting is disabled Probably a good idea to have. --- nixos/modules/services/x11/display-managers/gdm.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/services/x11/display-managers/gdm.nix b/nixos/modules/services/x11/display-managers/gdm.nix index 4830ec0030b..f2be3bc3253 100644 --- a/nixos/modules/services/x11/display-managers/gdm.nix +++ b/nixos/modules/services/x11/display-managers/gdm.nix @@ -216,6 +216,8 @@ in ${optionalString (!cfg.gdm.nvidiaWayland) '' DRIVER=="nvidia", RUN+="${gdm}/libexec/gdm-disable-wayland" ''} + # disable Wayland when modesetting is disabled + IMPORT{cmdline}="nomodeset", RUN+="${gdm}/libexec/gdm-disable-wayland" ''; systemd.user.services.dbus.wantedBy = [ "default.target" ];