From 0d34502fe3c62ae1d61a11f573ea637c4d537170 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 30 Oct 2023 16:21:58 +0100 Subject: [PATCH] nixos/wyoming/openwakeword: relax model selection The wyoming-openwakeword supports a custom model directory, which cannot be used when the the model list is constrained to the builtin ones. --- .../services/audio/wyoming/openwakeword.nix | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/nixos/modules/services/audio/wyoming/openwakeword.nix b/nixos/modules/services/audio/wyoming/openwakeword.nix index 06b7dd585fda..713945c1df62 100644 --- a/nixos/modules/services/audio/wyoming/openwakeword.nix +++ b/nixos/modules/services/audio/wyoming/openwakeword.nix @@ -22,15 +22,6 @@ let toString ; - models = [ - # wyoming_openwakeword/models/*.tflite - "alexa" - "hey_jarvis" - "hey_mycroft" - "hey_rhasspy" - "ok_nabu" - ]; - in { @@ -51,15 +42,22 @@ in }; models = mkOption { - type = listOf (enum models); - default = models; + type = listOf str; + default = [ + # wyoming_openwakeword/models/*.tflite + "alexa" + "hey_jarvis" + "hey_mycroft" + "hey_rhasspy" + "ok_nabu" + ]; description = mdDoc '' List of wake word models that should be made available. ''; }; preloadModels = mkOption { - type = listOf (enum models); + type = listOf str; default = [ "ok_nabu" ];