This commit is contained in:
Ingolf Wagner 2023-02-05 06:21:10 +01:00
parent 0cab974724
commit c0b60ac240
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
3 changed files with 30 additions and 0 deletions

View file

@ -19,6 +19,7 @@ let
"transmission2.robi" = hosts.robi; "transmission2.robi" = hosts.robi;
"loki.robi" = hosts.robi; "loki.robi" = hosts.robi;
"loki.pepe" = hosts.pepe; "loki.pepe" = hosts.pepe;
"tts.pepe" = hosts.pepe;
}; };
network = "private"; network = "private";
in in

View file

@ -22,6 +22,7 @@
#./neo4j.nix #./neo4j.nix
./jellyfin.nix ./jellyfin.nix
./wireguard.nix ./wireguard.nix
./tts.nix
#./loki.nix #./loki.nix

View 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";
};
};
}