reconfigure tts
This commit is contained in:
parent
b26401cb83
commit
199e1fe563
4 changed files with 55 additions and 0 deletions
|
@ -17,6 +17,7 @@ with lib;
|
|||
./taskwarrior.nix
|
||||
./style.nix
|
||||
./noti.nix
|
||||
./vscode.nix
|
||||
];
|
||||
|
||||
config = mkIf config.components.gui.enable {
|
||||
|
|
26
nixos/components/gui/vscode.nix
Normal file
26
nixos/components/gui/vscode.nix
Normal 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
|
||||
];
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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}";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue