[helix-texta] Enable nvidia
This commit is contained in:
parent
609d2bb11f
commit
c3ed74a6ce
|
@ -36,6 +36,7 @@
|
|||
|
||||
nvidia.modesetting.enable = true;
|
||||
nvidia.prime = {
|
||||
offload.enable = true;
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
intelBusId = "PCI:0:2:0";
|
||||
};
|
||||
|
@ -58,7 +59,7 @@
|
|||
};
|
||||
|
||||
services.blueman.enable = true;
|
||||
services.xserver.videoDrivers = lib.mkForce [ "nouveau" ];
|
||||
services.xserver.videoDrivers = lib.mkForce [ "nvidia" ];
|
||||
|
||||
nixpkgs.config.packageOverrides = pkgs: {
|
||||
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
|
||||
|
|
|
@ -105,8 +105,11 @@ in {
|
|||
};
|
||||
|
||||
extraSessionCommands = ''
|
||||
__GLX_VENDOR_LIBRARY=nvidia
|
||||
GBM_BACKEND=nvidia-drm
|
||||
GBM_BACKEND_PATH=/etc/gbm
|
||||
# Set DRM devices and fix cursor
|
||||
export WLR_NO_HARDWARE_CURSORS=1
|
||||
export WLR_NO_HARDWARE_CURSORS=0
|
||||
export WLR_DRM_DEVICES=/dev/dri/card0:/dev/dri/card1
|
||||
# Let's not, since it breaks most games
|
||||
#export SDL_VIDEODRIVER=wayland
|
||||
|
|
Loading…
Reference in a new issue