blob: 0d8675c4df79adc02d7699307709de3af9c5887e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{ self, config, lib, pkgs, ... }:
with self.lib.nginx;
{
virtualisation.oci-containers.backend = "podman";
virtualisation.oci-containers.containers = {
whisper = {
image = "docker.io/rhasspy/wyoming-whisper";
cmd = [ "--model" "base-int8" "--language" "en" ];
autoStart = true;
volumes = [
"/var/lib/homeassistant/whisper:/data"
];
ports = [
"10.10.0.1:10300:10300"
];
};
piper = {
image = "docker.io/rhasspy/wyoming-piper";
cmd = [ "--voice" "en_GB-jenny_dioco-medium" ];
autoStart = true;
volumes = [
"/var/lib/homeassistant/piper:/data"
];
ports = [
"10.10.0.1:10200:10200"
];
};
};
services.nginx = {
enable = true;
virtualHosts = {
"home.vapor.systems" = (proxyDomain "vapor.systems" "http://192.168.144.5:8123/");
};
};
}
|