Unverified Commit 0ed62e5f authored by Martin Weinelt's avatar Martin Weinelt
Browse files

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
parent 37107401
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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";