add tts
This commit is contained in:
parent
0cab974724
commit
c0b60ac240
3 changed files with 30 additions and 0 deletions
|
@ -19,6 +19,7 @@ let
|
|||
"transmission2.robi" = hosts.robi;
|
||||
"loki.robi" = hosts.robi;
|
||||
"loki.pepe" = hosts.pepe;
|
||||
"tts.pepe" = hosts.pepe;
|
||||
};
|
||||
network = "private";
|
||||
in
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#./neo4j.nix
|
||||
./jellyfin.nix
|
||||
./wireguard.nix
|
||||
./tts.nix
|
||||
|
||||
#./loki.nix
|
||||
|
||||
|
|
28
nixos/machines/pepe/tts.nix
Normal file
28
nixos/machines/pepe/tts.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ pkgs
|
||||
, config
|
||||
, ...
|
||||
}: {
|
||||
systemd.services.tts = {
|
||||
after = [ "network.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
path = [ pkgs.espeak ];
|
||||
environment.HOME = "/var/lib/tts";
|
||||
serviceConfig = {
|
||||
StateDirectory = "tts";
|
||||
DynamicUser = true;
|
||||
User = "tts";
|
||||
Group = "tts";
|
||||
ExecStart = ''
|
||||
${pkgs.tts}/bin/tts-server --model_name tts_models/en/ljspeech/vits --port 5004
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
recommendedProxySettings = true;
|
||||
enable = true;
|
||||
virtualHosts."tts.pepe.private" = {
|
||||
locations."/".proxyPass = "http://localhost:5004";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue