summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorCaleb <caleb.isaac.bowman@gmail.com>2023-11-08 07:34:26 -0500
committerGitHub <noreply@github.com>2023-11-08 13:34:26 +0100
commitc4d3afef06956e9748fb09309240b5efe4d6b39c (patch)
tree36c3ed8feb73abc48aeb6df58a9dde4d4db07831 /nixos
parentbc2b72df73a639f57438c6c98121ddd737f87786 (diff)
downloadnixpkgs-c4d3afef06956e9748fb09309240b5efe4d6b39c.tar
nixpkgs-c4d3afef06956e9748fb09309240b5efe4d6b39c.tar.gz
nixpkgs-c4d3afef06956e9748fb09309240b5efe4d6b39c.tar.bz2
nixpkgs-c4d3afef06956e9748fb09309240b5efe4d6b39c.tar.lz
nixpkgs-c4d3afef06956e9748fb09309240b5efe4d6b39c.tar.xz
nixpkgs-c4d3afef06956e9748fb09309240b5efe4d6b39c.tar.zst
nixpkgs-c4d3afef06956e9748fb09309240b5efe4d6b39c.zip
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.nix3
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 f156e8314a9..2d56acdc1b4 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;