Most applications that use Nvidia not working

When I try to run Joplin I get this error:

user@nixos ~/Documents> joplin-desktop
Sentry: Initialized with autoUploadCrashDumps: false
DRM kernel driver 'nvidia-drm' in use. NVK requires nouveau.
libEGL warning: egl: failed to create dri2 screen
DRM kernel driver 'nvidia-drm' in use. NVK requires nouveau.

for reference here is my Nvidia config

{ config, lib, pkgs, ... }:

{

  options = {
    # Define any custom options here if needed.
  };

  config = {
    boot.kernelParams = [ "nvidia_drm.fbdev=1" "nvidia-drm.modeset=1" "module_blacklist=i915" ];

    hardware.opengl = {
      enable = true;
      driSupport = true;
      driSupport32Bit = true;
    };

    environment.systemPackages = with pkgs; [
      libva-utils
      vdpauinfo
      vulkan-tools
      vulkan-validation-layers
      libvdpau-va-gl
      egl-wayland
      wgpu-utils
      mesa
      libglvnd
      nvtop
      nvitop
      libGL
    ];

    services.xserver.videoDrivers = [ "nvidia" ];

    hardware.nvidia = {
      forceFullCompositionPipeline = true;
      modesetting.enable = true;
      powerManagement.enable = true;
      powerManagement.finegrained = false;
      open = false;
      nvidiaSettings = true;
      # Uncomment next line to switch back to mainline NixOS Drivers
      # package = config.boot.kernelPackages.nvidiaPackages.production;
    };

    #Force use of the 555.58 Driver
    hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.mkDriver {
    version = "555.58";
    sha256_64bit = "sha256-bXvcXkg2kQZuCNKRZM5QoTaTjF4l2TtrsKUvyicj5ew=";
    sha256_aarch64 = "sha256-7XswQwW1iFP4ji5mbRQ6PVEhD4SGWpjUJe1o8zoXYRE=";
    openSha256 = "sha256-hEAmFISMuXm8tbsrB+WiUcEFuSGRNZ37aKWvf0WJ2/c=";
    settingsSha256 = "sha256-vWnrXlBCb3K5uVkDFmJDVq51wrCoqgPF03lSjZOuU8M=";
    persistencedSha256 = "sha256-lyYxDuGDTMdGxX3CaiWUh1IQuQlkI2hPEs5LI20vEVw=";
    };
  };
}

I am using an RTX2060 Legion Mobile laptop. Using the 555.58 drivers fixed many things in a previous post, but many applications such as joplin are still throwing errors such as the one mentioned above. The only issues I have in NixOS currently are Graphical ones related to Nvidia and Wayland

You might find it difficult to get free community support for a proprietary driver, not only because of spite, but because practically, it is often a dead end due to lack of source code to examine.

Is AMD that much better? If for example I sell this RTX2060 Mobile machine today, and get a Framework 16 with a Radeon RX 7700S, will my experience on Linux and particularly NixOS be that much higher?

I have not had any serious Nvidia issues on Arch Linux, Fedora, or Ubuntu, but It has been fighting me on NixOS especially with Wayland.

This is my Nvidia module, and it seems to work for most/all games I’ve tested with: nix-config/modules/nixos/nvidia.nix at ea41bd4a966698387b6e8b5fb73ba834af51f4da · aos/nix-config · GitHub For reference, this host is running KDE Plasma 6 using Wayland, using a RTX 2060 Super.

1 Like

My observation is that in general with AMD is less trouble. I’m trying to sell my old GTX 1080 Ti for this reason. Heck, being a long time Linux user, I don’t know why I didn’t know better.

Your module copypasted works perfectly for everything I now have perfect Nvidia on everything. Thanks!!!