nixos/open-webui: allow service to access gpu (#410579)

authored by Pol Dellaiera and committed by GitHub 79cec564 8753210c

+15
+15
nixos/modules/services/misc/open-webui.nix
··· 132 132 "@system-service" 133 133 "~@privileged" 134 134 ]; 135 + SupplementaryGroups = [ "render" ]; # for rocm to access /dev/dri/renderD* devices 136 + DeviceAllow = [ 137 + # CUDA 138 + # https://docs.nvidia.com/dgx/pdf/dgx-os-5-user-guide.pdf 139 + "char-nvidiactl" 140 + "char-nvidia-caps" 141 + "char-nvidia-frontend" 142 + "char-nvidia-uvm" 143 + # ROCm 144 + "char-drm" 145 + "char-fb" 146 + "char-kfd" 147 + # WSL (Windows Subsystem for Linux) 148 + "/dev/dxg" 149 + ]; 135 150 }; 136 151 }; 137 152