chore(nix): add Wyoming service configuration
- Introduced a new `wyoming.nix` file with service definitions for `faster-whisper` and `piper`. - Enabled TCP ports `10200` and `10300` in the firewall for service communication. - Updated SGX configuration to include `wyoming.nix` in system imports.
This commit is contained in:
parent
66022d19c2
commit
4c641910fd
2 changed files with 24 additions and 0 deletions
|
|
@ -9,6 +9,7 @@
|
||||||
./acme.nix
|
./acme.nix
|
||||||
./nginx.nix
|
./nginx.nix
|
||||||
./mail.nix
|
./mail.nix
|
||||||
|
./wyoming.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
services.tailscale.enable = true;
|
services.tailscale.enable = true;
|
||||||
|
|
|
||||||
23
systems/x86_64-linux/sgx/wyoming.nix
Normal file
23
systems/x86_64-linux/sgx/wyoming.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
services.wyoming = {
|
||||||
|
faster-whisper.servers."main" = {
|
||||||
|
enable = true;
|
||||||
|
language = "de";
|
||||||
|
model = "base"; # or "small"/"medium" for better accuracy
|
||||||
|
uri = "tcp://0.0.0.0:10300";
|
||||||
|
device = "cpu";
|
||||||
|
};
|
||||||
|
|
||||||
|
piper.servers."main" = {
|
||||||
|
enable = true;
|
||||||
|
voice = "de_DE-thorsten-medium"; # popular German voice
|
||||||
|
uri = "tcp://0.0.0.0:10200";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
10200
|
||||||
|
10300
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue