reconfigure tts

This commit is contained in:
Ingolf Wagner 2023-08-24 14:25:59 +02:00
parent b26401cb83
commit 199e1fe563
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
4 changed files with 55 additions and 0 deletions

View file

@ -17,6 +17,7 @@ with lib;
./taskwarrior.nix
./style.nix
./noti.nix
./vscode.nix
];
config = mkIf config.components.gui.enable {

View file

@ -0,0 +1,26 @@
{ config, pkgs, lib, ... }:
with lib;
{
options.components.gui.vscode.enable = mkOption {
type = lib.types.bool;
default = config.components.gui.enable;
};
config = mkIf (config.components.gui.vscode.enable) {
environment.systemPackages = with pkgs; [
(vscode-with-extensions.override {
vscodeExtensions = with vscode-extensions; [
bbenoist.nix
ms-python.python
ms-azuretools.vscode-docker
ms-vscode-remote.remote-ssh
vscodevim.vim
rust-lang.rust-analyzer
#github.copilot-labs
github.copilot
#github.copilot-chat
];
})
];
};
}

View file

@ -40,6 +40,8 @@ let
"tdarr.chungus" = hosts.chungus;
"trilium.chungus" = hosts.chungus;
"tts.chungus" = hosts.chungus;
"de.tts.chungus" = hosts.chungus;
"en.tts.chungus" = hosts.chungus;
# cream
"trilium.cream" = hosts.cream;
};

View file

@ -19,11 +19,37 @@
};
};
services.tts = {
servers = {
english = {
enable = true;
port = 5300;
#model = "tts_models/en/ljspeech/tacotron2-DDC";
model = "tts_models/en/ljspeech/vits";
};
german = {
enable = true;
port = 5301;
#model = "tts_models/de/thorsten/tacotron2-DDC";
model = "tts_models/de/thorsten/vits";
};
};
};
services.nginx = {
recommendedProxySettings = true;
enable = true;
# works
virtualHosts."tts.${config.networking.hostName}.private" = {
locations."/".proxyPass = "http://localhost:5004";
};
# works not
virtualHosts."en.tts.${config.networking.hostName}.private" = {
locations."/".proxyPass = "http://localhost:${toString config.services.tts.servers.english.port}";
};
# works
virtualHosts."de.tts.${config.networking.hostName}.private" = {
locations."/".proxyPass = "http://localhost:${toString config.services.tts.servers.german.port}";
};
};
}