nixos/tts: fix handling of extraArgs
This commit is contained in:
committed by
Jörg Thalheim
parent
4cc13ba7c8
commit
7ebb6132f4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user