git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/nvidia: assert that gdm.nvidiaWayland needs modesetting
commit9c8181db9be6c99639c797c1ad9e145e8e766f04 authorworldofpeace <worldofpeace@protonmail.ch> dateWed 2 Oct 2019, 20:07 (7 years ago) parent84e6784
1 file changed+5
nixos/modules/hardware/video/nvidia.nix+5
nixos/modules/hardware/video/nvidia.nix+5
@@ -110,6 +110,11 @@ in
110110
111111 config = mkIf enabled {
112112 assertions = [
113+ {
114+ assertion = with config.services.xserver.displayManager; gdm.nvidiaWayland -> cfg.modesetting.enable;
115+ message = "You cannot use wayland with GDM without modesetting enabled for NVIDIA drivers, set `hardware.nvidia.modesetting.enable = true`";
116+ }
117+
113118 {
114119 assertion = !optimusCfg.enable ||
115120 (optimusCfg.nvidiaBusId != "" && optimusCfg.intelBusId != "");