diff --git a/global/gpu/default.nix b/global/gpu/default.nix index a51e8ddf..dd3a92ca 100644 --- a/global/gpu/default.nix +++ b/global/gpu/default.nix @@ -73,7 +73,7 @@ in { # work around broken nvidia hw cursor on wayland WLR_NO_HARDWARE_CURSORS = mkIf (cfg.type == "nvidia") "1"; # work around wlroots flickering on pure nvidia - WLR_RENDERER = mkIf (cfg.type == "nvidia") "vulkan"; + #WLR_RENDERER = mkIf (cfg.type == "nvidia") "vulkan"; }; specialisation.integratedGraphics = mkIf (cfg.type == "prime") { @@ -103,6 +103,8 @@ in { options vfio-pci ids=${cfg.arc} ''; - boot.kernelParams = optional intel "i915.fastboot=1"; + boot.kernelParams = + optional intel "i915.fastboot=1" ++ + optionals nvidia [ "nvidia_drm.modeset=1" "nvidia_drm.fbdev=1" ]; }; }