Distrobox nVidia

For the life of me I can’t seem to get a GPU accelerated distrobox going. The GPU works fine on the host, but I have a proprietary crapplication that needs to run in an ubuntu environment. Chitubox for those interested.

I’ve tried stable 23.11 and unstable distrobox.

$ distrobox --version

$ glxinfo | grep renderer
OpenGL renderer string: NVIDIA GeForce GTX 1070 Ti/PCIe/SSE2

test distrobox created with:
$ distrobox-create --nvidia --name test --image ubuntu:22.04

$ distrobox-enter test

$ sudo apt install mesa-utils
$ glxinfo | grep renderer
OpenGL renderer string: llvmpipe (LLVM 15.0.7, 256 bits)

possibly Relevant bits of config:

virtualisation.docker.enable = true;
virtualisation.docker.enableNvidia = true;
users.users.me.extraGroups = [ "networkmanager" "wheel" "video" "docker" ];

Thanks for your eyes :slight_smile:

I believe that something is broken with the --nvidia flag at the moment on Nixos (23.11)

Yeah the --nvidia flag is broken. Following the directions to use the nvidia container toolkit seems to work thought.