From 47eda6dab7a99bbf1be08311e0a9e20fa2d5de25 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 24 Jan 2025 18:27:13 +0100 Subject: [PATCH 1/2] nixos/wyoming/faster-whisper: drop download directory The download directory must be one of the data directories, but if we do not set it the first data directory will be used as the data directory. --- .../services/home-automation/wyoming/faster-whisper.nix | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/nixos/modules/services/home-automation/wyoming/faster-whisper.nix b/nixos/modules/services/home-automation/wyoming/faster-whisper.nix index 018bd5f5c1cc..c01c7db37931 100644 --- a/nixos/modules/services/home-automation/wyoming/faster-whisper.nix +++ b/nixos/modules/services/home-automation/wyoming/faster-whisper.nix @@ -275,18 +275,13 @@ in serviceConfig = { DynamicUser = true; User = "wyoming-faster-whisper"; - StateDirectory = [ - "wyoming/faster-whisper" - "wyoming/faster-whisper/models" - ]; + StateDirectory = [ "wyoming/faster-whisper" ]; # https://github.com/home-assistant/addons/blob/master/whisper/rootfs/etc/s6-overlay/s6-rc.d/whisper/run ExecStart = escapeSystemdExecArgs ( [ (lib.getExe cfg.package) "--data-dir" "/var/lib/wyoming/faster-whisper" - "--download-dir" - "/var/lib/wyoming/faster-whisper/models" "--uri" options.uri "--device" From 14ce74a5ef2e36a2487492517f69cedafd949caa Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 24 Jan 2025 18:28:31 +0100 Subject: [PATCH 2/2] nixos/wyoming/piper: drop download directory The download directory must be one of the data directories, but if we do not set it the first data directory will be used as the data directory. --- nixos/modules/services/home-automation/wyoming/piper.nix | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/nixos/modules/services/home-automation/wyoming/piper.nix b/nixos/modules/services/home-automation/wyoming/piper.nix index 7b6993a65dae..2ef64c878239 100644 --- a/nixos/modules/services/home-automation/wyoming/piper.nix +++ b/nixos/modules/services/home-automation/wyoming/piper.nix @@ -136,18 +136,13 @@ in serviceConfig = { DynamicUser = true; User = "wyoming-piper"; - StateDirectory = [ - "wyoming/piper" - "wyoming/piper/models" - ]; + StateDirectory = [ "wyoming/piper" ]; # https://github.com/home-assistant/addons/blob/master/piper/rootfs/etc/s6-overlay/s6-rc.d/piper/run ExecStart = escapeSystemdExecArgs ( [ (lib.getExe cfg.package) "--data-dir" "/var/lib/wyoming/piper" - "--download-dir" - "/var/lib/wyoming/piper/models" "--uri" options.uri "--piper"