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";
|
User = "tts";
|
||||||
StateDirectory = "tts";
|
StateDirectory = "tts";
|
||||||
ExecStart =
|
ExecStart =
|
||||||
"${pkgs.tts}/bin/tts-server --port ${toString options.port}"
|
"${pkgs.tts}/bin/tts-server --port ${toString options.port} "
|
||||||
+ optionalString (options.model != null) " --model_name ${options.model}"
|
+ optionalString (options.model != null) "--model_name ${options.model} "
|
||||||
+ optionalString (options.useCuda) " --use_cuda"
|
+ optionalString (options.useCuda) "--use_cuda "
|
||||||
+ (concatMapStringsSep " " escapeShellArgs options.extraArgs);
|
+ (escapeShellArgs options.extraArgs);
|
||||||
CapabilityBoundingSet = "";
|
CapabilityBoundingSet = "";
|
||||||
DeviceAllow =
|
DeviceAllow =
|
||||||
if options.useCuda then
|
if options.useCuda then
|
||||||
|
|||||||
Reference in New Issue
Block a user