|
|
|
@ -218,14 +218,14 @@ in |
|
|
|
|
# We duplicate upstream's udev rules manually to make wayland with nvidia configurable |
|
|
|
|
services.udev.extraRules = '' |
|
|
|
|
# disable Wayland on Cirrus chipsets |
|
|
|
|
ATTR{vendor}=="0x1013", ATTR{device}=="0x00b8", ATTR{subsystem_vendor}=="0x1af4", ATTR{subsystem_device}=="0x1100", RUN+="${gdm}/libexec/gdm-disable-wayland" |
|
|
|
|
ATTR{vendor}=="0x1013", ATTR{device}=="0x00b8", ATTR{subsystem_vendor}=="0x1af4", ATTR{subsystem_device}=="0x1100", RUN+="${gdm}/libexec/gdm-runtime-config set daemon WaylandEnable false" |
|
|
|
|
# disable Wayland on Hi1710 chipsets |
|
|
|
|
ATTR{vendor}=="0x19e5", ATTR{device}=="0x1711", RUN+="${gdm}/libexec/gdm-disable-wayland" |
|
|
|
|
ATTR{vendor}=="0x19e5", ATTR{device}=="0x1711", RUN+="${gdm}/libexec/gdm-runtime-config set daemon WaylandEnable false" |
|
|
|
|
${optionalString (!cfg.gdm.nvidiaWayland) '' |
|
|
|
|
DRIVER=="nvidia", RUN+="${gdm}/libexec/gdm-disable-wayland" |
|
|
|
|
DRIVER=="nvidia", RUN+="${gdm}/libexec/gdm-runtime-config set daemon WaylandEnable false" |
|
|
|
|
''} |
|
|
|
|
# disable Wayland when modesetting is disabled |
|
|
|
|
IMPORT{cmdline}="nomodeset", RUN+="${gdm}/libexec/gdm-disable-wayland" |
|
|
|
|
IMPORT{cmdline}="nomodeset", RUN+="${gdm}/libexec/gdm-runtime-config set daemon WaylandEnable false" |
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
systemd.user.services.dbus.wantedBy = [ "default.target" ]; |
|
|
|
|