nixos/wyoming-faster-whisper: update CUDA device allowlist (#356853)

This commit is contained in:
Martin Weinelt 2024-11-18 03:25:47 +01:00 committed by GitHub
commit ee9ea4f6ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -142,18 +142,10 @@ in
CapabilityBoundingSet = "";
DeviceAllow = if builtins.elem options.device [ "cuda" "auto" ] then [
# https://docs.nvidia.com/dgx/pdf/dgx-os-5-user-guide.pdf
# CUDA not working? Check DeviceAllow and PrivateDevices first!
"/dev/nvidia0"
"/dev/nvidia1"
"/dev/nvidia2"
"/dev/nvidia3"
"/dev/nvidia4"
"/dev/nvidia-caps/nvidia-cap1"
"/dev/nvidia-caps/nvidia-cap2"
"/dev/nvidiactl"
"/dev/nvidia-modeset"
"/dev/nvidia-uvm"
"/dev/nvidia-uvm-tools"
"char-nvidia-uvm"
"char-nvidia-frontend"
"char-nvidia-caps"
"char-nvidiactl"
] else "";
DevicePolicy = "closed";
LockPersonality = true;