From 232d46e06e8239d556e72aa4ba439bce0baa23d1 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 24 Jan 2025 13:32:45 +0100 Subject: [PATCH] nixos/wyoming/openwakeword: fix eval Incomplete bracketing led to a partial application of the concatMap function, which broke the evaluation of this module. --- .../home-automation/wyoming/openwakeword.nix | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/nixos/modules/services/home-automation/wyoming/openwakeword.nix b/nixos/modules/services/home-automation/wyoming/openwakeword.nix index 7c3b21341f37..1b4e932c7b0f 100644 --- a/nixos/modules/services/home-automation/wyoming/openwakeword.nix +++ b/nixos/modules/services/home-automation/wyoming/openwakeword.nix @@ -126,22 +126,14 @@ in "--trigger-level" cfg.triggerLevel ] - ++ concatMap ( - model: - [ - "--preload-model" - model - ] - cfg.preloadModels - ) - ++ concatMap ( - dir: - [ - "--custom-model-dir" - (toString dir) - ] - cfg.customModelsDirectories - ) + ++ (concatMap (model: [ + "--preload-model" + model + ]) cfg.preloadModels) + ++ (concatMap (dir: [ + "--custom-model-dir" + (toString dir) + ]) cfg.customModelsDirectories) ++ cfg.extraArgs ); CapabilityBoundingSet = "";