nixos/gdm: disable wayland when modesetting is disabled
Probably a good idea to have.
commitd41a2e33989efbe3843a26b73d3c2d38ca048c1e
authorworldofpeace <worldofpeace@protonmail.ch>
dateWed 2 Oct 2019, 20:09 (7 years ago)
parent9c8181d
nixos/modules/services/x11/display-managers/gdm.nix+2
@@ -216,6 +216,8 @@ in
216216 ${optionalString (!cfg.gdm.nvidiaWayland) ''
217217 DRIVER=="nvidia", RUN+="${gdm}/libexec/gdm-disable-wayland"
218218 ''}
219+ # disable Wayland when modesetting is disabled
220+ IMPORT{cmdline}="nomodeset", RUN+="${gdm}/libexec/gdm-disable-wayland"
219221 '';
220222
221223 systemd.user.services.dbus.wantedBy = [ "default.target" ];