From ee595b709e18882162ef5e435ef5c9fe275bdf80 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 18 Nov 2024 03:21:43 +0100 Subject: [PATCH] nixos/wyoming-faster-whisper: update CUDA device allowlist This list can change between driver versions, and it requires an update now to find my GPU. --- .../home-automation/wyoming/faster-whisper.nix | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/nixos/modules/services/home-automation/wyoming/faster-whisper.nix b/nixos/modules/services/home-automation/wyoming/faster-whisper.nix index 45664103665f..691ffab6464a 100644 --- a/nixos/modules/services/home-automation/wyoming/faster-whisper.nix +++ b/nixos/modules/services/home-automation/wyoming/faster-whisper.nix @@ -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;