global(gui): add nvidia options
This commit is contained in:
parent
b2212e3842
commit
c81f989e5a
1 changed files with 4 additions and 2 deletions
|
@ -73,7 +73,7 @@ in {
|
||||||
# work around broken nvidia hw cursor on wayland
|
# work around broken nvidia hw cursor on wayland
|
||||||
WLR_NO_HARDWARE_CURSORS = mkIf (cfg.type == "nvidia") "1";
|
WLR_NO_HARDWARE_CURSORS = mkIf (cfg.type == "nvidia") "1";
|
||||||
# work around wlroots flickering on pure nvidia
|
# 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") {
|
specialisation.integratedGraphics = mkIf (cfg.type == "prime") {
|
||||||
|
@ -103,6 +103,8 @@ in {
|
||||||
options vfio-pci ids=${cfg.arc}
|
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" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue