summary refs log tree commit diff
path: root/nixos/modules/hardware/video
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2018-12-12 00:20:52 +0100
committerVladimír Čunát <vcunat@gmail.com>2018-12-12 00:26:09 +0100
commitad3e9191d16722ea3eec32f4cd689eea730f39f6 (patch)
tree419060878b60104f3923cab2431ff8feb0ef8226 /nixos/modules/hardware/video
parent536d0cc3a71c61f06ae1f0a59931229a63faabe6 (diff)
downloadnixpkgs-ad3e9191d16722ea3eec32f4cd689eea730f39f6.tar
nixpkgs-ad3e9191d16722ea3eec32f4cd689eea730f39f6.tar.gz
nixpkgs-ad3e9191d16722ea3eec32f4cd689eea730f39f6.tar.bz2
nixpkgs-ad3e9191d16722ea3eec32f4cd689eea730f39f6.tar.lz
nixpkgs-ad3e9191d16722ea3eec32f4cd689eea730f39f6.tar.xz
nixpkgs-ad3e9191d16722ea3eec32f4cd689eea730f39f6.tar.zst
nixpkgs-ad3e9191d16722ea3eec32f4cd689eea730f39f6.zip
nixos/nvidia: improve the assertion again
/cc ac19d5e34 #51836.
Diffstat (limited to 'nixos/modules/hardware/video')
-rw-r--r--nixos/modules/hardware/video/nvidia.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/hardware/video/nvidia.nix b/nixos/modules/hardware/video/nvidia.nix
index efc65a55af7..8f1e2671ece 100644
--- a/nixos/modules/hardware/video/nvidia.nix
+++ b/nixos/modules/hardware/video/nvidia.nix
@@ -101,7 +101,7 @@ in
   config = mkIf enabled {
     assertions = [
       {
-        assertion = !config.services.xserver.displayManager.gdm.wayland;
+        assertion = with config.services.xserver.displayManager; gdm.enable -> !gdm.wayland;
         message = "NVIDIA drivers don't support wayland";
       }
       {