Thunderbolt eGPU config.nix properties? nvidia-settings doesn't list eGPU

Does configuration.nix require any special properties or vars for running an eGPU? Getting no display output and nvidia-settings does not list the GPU as attached.

lspci

# Internal Intel
00:02.0 VGA compatible controller: Intel Corporation HD Graphics P530 (rev 06)

# Internal NVIDIA
01:00.0 3D controller: NVIDIA Corporation GM107GLM [Quadro M1000M] (rev a2)

# Thunderbolt eGPU
0b:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)

configuration.nix

  nixpkgs.config.allowUnfree = true;

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

  # always enable NVIDIA internal GPU
  hardware.nvidia.prime = {
    sync.enable = true;

    nvidiaBusId = "PCI:1:0:0";
    intelBusId = "PCI:0:2:0";
  };

  hardware.nvidia.nvidiaPersistenced = true;

xorg.conf written in system.xserver.config

Section "Module"
    Load           "modesetting"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    BusID          "11:0:0"
    Option         "AllowEmptyInitialConfiguration"
    Option         "AllowExternalGpus" "True"
    Option	   "SLI" "Auto"
EndSection

Setting xorg.conf does not seem to have any effect. eGPU gets listed on nvidia-smi but not in nvidia-settings and shows no display output.

1 Like