global(gui): add pure nvidia flicker workaround
This commit is contained in:
parent
048f37e680
commit
c8c6f4ef08
1 changed files with 9 additions and 3 deletions
|
@ -41,7 +41,9 @@ in {
|
||||||
vaapiVdpau
|
vaapiVdpau
|
||||||
libvdpau-va-gl
|
libvdpau-va-gl
|
||||||
intel-compute-runtime
|
intel-compute-runtime
|
||||||
] ++ optional nvidia nvidia-vaapi-driver;
|
] ++
|
||||||
|
optional nvidia nvidia-vaapi-driver ++
|
||||||
|
optional (cfg.type == "nvidia") vulkan-validation-layers;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.xserver.videoDrivers =
|
services.xserver.videoDrivers =
|
||||||
|
@ -66,8 +68,12 @@ in {
|
||||||
open = false;
|
open = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
# work around broken nvidia hw cursor on wayland
|
environment.variables = {
|
||||||
environment.variables.WLR_NO_HARDWARE_CURSORS = mkIf (cfg.type == "nvidia") "1";
|
# 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";
|
||||||
|
};
|
||||||
|
|
||||||
specialisation.integratedGraphics = mkIf (cfg.type == "prime") {
|
specialisation.integratedGraphics = mkIf (cfg.type == "prime") {
|
||||||
configuration = {
|
configuration = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue