From 0ed62e5f94962d4e61dbece4782f29056d62e60b Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 1 Aug 2025 01:56:50 +0200 Subject: [PATCH] nixos/wyoming/faster-whisper: set huggingface home This is the global prefix for all cache dirs. Everything the library downloads is expendable, since faster-whisper copies the results over into `/var/lib/wyoming/faster-whisper/`. Since that makes the data redundant `/tmp` is preferable to `/var/cache`. Fixes: #429974 --- .../services/home-automation/wyoming/faster-whisper.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/home-automation/wyoming/faster-whisper.nix b/nixos/modules/services/home-automation/wyoming/faster-whisper.nix index 26f7955d9b08..928104c497e5 100644 --- a/nixos/modules/services/home-automation/wyoming/faster-whisper.nix +++ b/nixos/modules/services/home-automation/wyoming/faster-whisper.nix @@ -300,7 +300,8 @@ in "multi-user.target" ]; # https://github.com/rhasspy/wyoming-faster-whisper/issues/27 - environment."HF_HUB_CACHE" = "/tmp"; + # https://github.com/NixOS/nixpkgs/issues/429974 + environment."HF_HOME" = "/tmp"; serviceConfig = { DynamicUser = true; User = "wyoming-faster-whisper";