about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorMartin Weinelt <mweinelt@users.noreply.github.com>2023-10-30 17:09:22 +0100
committerGitHub <noreply@github.com>2023-10-30 17:09:22 +0100
commit1e333439f129c28213380593a53071f0084ab7b0 (patch)
tree6982b000c3b07d3e9494dd2d91e853c1c75febbc /nixos
parentbf76c9f706c23d8f39991a0c785fa882e0966064 (diff)
parent0d34502fe3c62ae1d61a11f573ea637c4d537170 (diff)
Merge pull request #264378 from mweinelt/wyoming-openwakeword-relax-model-selection
nixos/wyoming/openwakeword: relax model selection
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/audio/wyoming/openwakeword.nix22
1 files changed, 10 insertions, 12 deletions
diff --git a/nixos/modules/services/audio/wyoming/openwakeword.nix b/nixos/modules/services/audio/wyoming/openwakeword.nix
index 06b7dd585fda1..713945c1df62e 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"
       ];