[helix-texta] Enable nvidia

This commit is contained in:
Malte Tammena 2022-02-01 07:39:15 +01:00
parent 609d2bb11f
commit c3ed74a6ce
2 changed files with 6 additions and 2 deletions

View file

@ -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; };

View file

@ -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