Skip to content

Commit

Permalink
nixos/nvidia: check modesetting for gdm-wayland only when gdm is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jtojnar committed Nov 30, 2021
1 parent 365b448 commit dad4fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/hardware/video/nvidia.nix
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ in
in mkIf enabled {
assertions = [
{
assertion = with config.services.xserver.displayManager; gdm.nvidiaWayland -> cfg.modesetting.enable;
assertion = with config.services.xserver.displayManager; (gdm.enable && gdm.nvidiaWayland) -> cfg.modesetting.enable;
message = "You cannot use wayland with GDM without modesetting enabled for NVIDIA drivers, set `hardware.nvidia.modesetting.enable = true`";
}

Expand Down

0 comments on commit dad4fdd

Please sign in to comment.