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
This commit is contained in:
Martin Weinelt
2025-08-01 02:00:00 +02:00
parent 37107401e5
commit 0ed62e5f94
@@ -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";