From 7ebb6132f4903cce7ecc19f0c13092f08acda2d5 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Giraudeau Date: Fri, 20 Dec 2024 10:38:22 +0100 Subject: [PATCH] nixos/tts: fix handling of extraArgs --- nixos/modules/services/audio/tts.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nixos/modules/services/audio/tts.nix b/nixos/modules/services/audio/tts.nix index 590bdab2f40ae..554256e6d2464 100644 --- a/nixos/modules/services/audio/tts.nix +++ b/nixos/modules/services/audio/tts.nix @@ -123,10 +123,10 @@ in User = "tts"; StateDirectory = "tts"; ExecStart = - "${pkgs.tts}/bin/tts-server --port ${toString options.port}" - + optionalString (options.model != null) " --model_name ${options.model}" - + optionalString (options.useCuda) " --use_cuda" - + (concatMapStringsSep " " escapeShellArgs options.extraArgs); + "${pkgs.tts}/bin/tts-server --port ${toString options.port} " + + optionalString (options.model != null) "--model_name ${options.model} " + + optionalString (options.useCuda) "--use_cuda " + + (escapeShellArgs options.extraArgs); CapabilityBoundingSet = ""; DeviceAllow = if options.useCuda then