I’m having trouble setting up nvidia on my nixss 23.11 with geforce mx150 graphics card and an integrated intel gpu
everything works properly except the mouse cursor which isn’t smooth and is very laggy
i use gnome and one thing I’ve noticed is that when i record screen with “show pointer” enabled, there is no lag (while recording)
note that without nvidia driver (using nouveau) there is no problem at all
this is the code i have in configuration.nix for nvidia part (the rest is default generated config + packages)
################ NVIDIA #######################
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = false;
powerManagement.finegrained = false;
open = false;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.legacy_390;
forceFullCompositionPipeline = true;
prime = {
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
sync.enable = true;
};
};
nixpkgs.config.nvidia.acceptLicense = true;
nixpkgs.config.cudaSupport = true;
################ NVIDIA #######################