Skip to content

Commit

Permalink
nixos/tts: fix handling of extraArgs
Browse files Browse the repository at this point in the history
  • Loading branch information
jbgi authored and Mic92 committed Dec 22, 2024
1 parent 4cc13ba commit 7ebb613
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nixos/modules/services/audio/tts.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7ebb613

Please sign in to comment.