Home

November 21, 2026

Nsight-ing without Crashing on NixOS with Nvidia Blackwell RTX

Until recently, I had been unable to run NVIDIA’s Nsight Systems profiler/visualizer on my NixOS system with a Blackwell RTX PRO 2000 laptop GPU:

❯ nvidia-smi
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 615.78.08              KMD Version: 615.78.08     CUDA UMD Version: 13.4     |
+-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA RTX PRO 2000 Blac...    Off |   00000000:01:00.0 Off |                  N/A |
| N/A   45C    P8              4W /   60W |      12MiB /   8151MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

I would be able to open the UI successfully, but anytime I tried to open a trace or profile the device live, the UI would show an “unexpected crash” dialog and give me a .dmp file indicating that Qt WebEngine sent a SIGABRT after failing to locate the QtWebEngineProcess helper executable.

Stack trace from the dump:

  1. libc.so.6: __pthread_kill_implementation ← raise ← abort
  2. libQt6Core.so.6: QMessageLogger::fatal(char const*, ...) const
  3. libQt6WebEngineCore.so.6 (category qt.webengine.libraryinfo): lookup for browser-subprocess-path (QT_WEBENGINEPROCESS_PATH) ← QWebEnginePagePrivate::QWebEnginePagePrivate(QWebEngineProfile*) ←
  QWebEnginePage::QWebEnginePage(QObject*)
  4. libQuadDPlugin.so: report UI plugin creating an embedded web view while processing /tmp/nsight-test/test_kernel.nsys-rep
  5. libQt6Widgets.so.6 / libQt6Core.so.6 / libAppLib.so: standard Qt main event loop (NV::AppLib::RunAgoraApplication)

Not entirely surprising, considering that we’re on NixOS and not a standard Linux distribution. I had already had this configuration in a modules/hardware/nvidia.nix:

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

{
  # Nvidia RTX PRO 2000 Blackwell (GB206GLM)
  services.xserver.videoDrivers = [ "nvidia" ];

  hardware.nvidia = {
    # Open kernel modules are MANDATORY for Blackwell architecture
    open = true;

    modesetting.enable = true;

    # Power management for laptop battery life
    powerManagement.enable = true;
    # RTD3 (runtime D3) causes nv_pmops_runtime_suspend failures (-EIO) on
    # Blackwell with open kernel modules, leaving the GPU unreachable.
    powerManagement.finegrained = false;

    # PRIME offload: iGPU handles desktop, dGPU on-demand
    prime = {
      offload = {
        enable = true;
        enableOffloadCmd = true; # provides `nvidia-offload` wrapper
      };
      intelBusId = "PCI:0:2:0";
      nvidiaBusId = "PCI:1:0:0";
    };

    # Use the latest driver (must be >= 570 for Blackwell)
    package = config.boot.kernelPackages.nvidiaPackages.latest;
  };

  hardware.graphics.enable = true;

  # ...
}

And assumed I needed an overlay to patch things up, but I had no luck generating one when I LLM'ed it a few months ago. Now that we have a proof of the Riemann Hypothesis, I figured a retry was in order, and got:

  # Fix nixpkgs' cudaPackages.nsight_systems packaging: nixpkgs puts
  # `${hostDir}/libexec` in env.rmPatterns, deleting NVIDIA's bundled Qt 6.10.2
  # QtWebEngineProcess + qt.conf and causing nsys-ui to SIGABRT when opening
  # reports. Also default QT_QPA_PLATFORM=xcb on nsys-ui.bin so plain `nsys-ui`
  # launches cleanly under GNOME Wayland (still overridable via env var).
  nixpkgs.overlays = [
    (final: prev: {
      cudaPackages = prev.cudaPackages.overrideScope (cfinal: cprev: {
        nsight_systems = cprev.nsight_systems.overrideAttrs (old: {
          env = (old.env or { }) // {
            rmPatterns = builtins.replaceStrings
              [ "host-linux-x64/libexec" ]
              [ "" ]
              old.env.rmPatterns;
          };
          postInstall = builtins.replaceStrings
            [ ''wrapQtApp "''${!outputBin}/host-linux-x64/nsys-ui.bin"'' ]
            [ ''wrapQtApp "''${!outputBin}/host-linux-x64/nsys-ui.bin" --set-default QT_QPA_PLATFORM xcb'' ]
            old.postInstall;
        });
      });
    })
  ];

  environment.systemPackages = [
    pkgs.cudaPackages.nsight_systems
  ];

which is working well so far; I can open traces and profile live without crashing: