diff options
author | Caleb <caleb.isaac.bowman@gmail.com> | 2023-11-08 07:34:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-08 13:34:26 +0100 |
commit | c4d3afef06956e9748fb09309240b5efe4d6b39c (patch) | |
tree | 36c3ed8feb73abc48aeb6df58a9dde4d4db07831 /nixos | |
parent | bc2b72df73a639f57438c6c98121ddd737f87786 (diff) |
wyoming-faster-whisper fix CUDA devices not being detected. (#266167)
This change enables CUDA support by allowing access to /dev/nvidia0.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/audio/wyoming/faster-whisper.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/services/audio/wyoming/faster-whisper.nix b/nixos/modules/services/audio/wyoming/faster-whisper.nix index f156e8314a95..2d56acdc1b4c 100644 --- a/nixos/modules/services/audio/wyoming/faster-whisper.nix +++ b/nixos/modules/services/audio/wyoming/faster-whisper.nix @@ -146,6 +146,8 @@ 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" @@ -160,7 +162,6 @@ in DevicePolicy = "closed"; LockPersonality = true; MemoryDenyWriteExecute = true; - PrivateDevices = true; PrivateUsers = true; ProtectHome = true; ProtectHostname = true; |