summaryrefslogtreecommitdiffstats
path: root/nixos/modules/hardware/video
diff options
context:
space:
mode:
authorRostislav Beneš <r.dee.b.b@gmail.com>2017-05-07 22:27:02 +0200
committerFranz Pletz <fpletz@fnordicwalking.de>2017-09-28 00:18:57 +0200
commit4ef82339c9a32548d2432ca71e8aac87abe79777 (patch)
tree219dfd2e5def33e0d8afb25325c5b4cdb54a05ce /nixos/modules/hardware/video
parent4f91397c987739cc96e1dd418f79fc0d94326485 (diff)
nixos/gdm,nvidia: new options to enable GDM on Wayland and disabling it for nvidia drivers.
Diffstat (limited to 'nixos/modules/hardware/video')
-rw-r--r--nixos/modules/hardware/video/nvidia.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/modules/hardware/video/nvidia.nix b/nixos/modules/hardware/video/nvidia.nix
index 2bad50d65e7a..52f1773e9c45 100644
--- a/nixos/modules/hardware/video/nvidia.nix
+++ b/nixos/modules/hardware/video/nvidia.nix
@@ -40,6 +40,12 @@ in
{
config = mkIf enabled {
+ assertions = [
+ {
+ assertion = services.xserver.displayManager.gdm.wayland;
+ message = "NVidia drivers don't support wayland";
+ }
+ ];
services.xserver.drivers = singleton
{ name = "nvidia"; modules = [ nvidia_x11.bin ]; libPath = [ nvidia_x11 ]; };