diff options
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/default.nix | 1 | ||||
| -rw-r--r-- | modules/homeassistant/default.nix | 37 |
2 files changed, 38 insertions, 0 deletions
diff --git a/modules/default.nix b/modules/default.nix index edd9d98..dc6de23 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -20,4 +20,5 @@ powerdns = import ./powerdns; hydra = import ./hydra; tlmp = import ./tlmp; + homeassistant = import ./homeassistant; } diff --git a/modules/homeassistant/default.nix b/modules/homeassistant/default.nix new file mode 100644 index 0000000..0d8675c --- /dev/null +++ b/modules/homeassistant/default.nix @@ -0,0 +1,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/"); + }; + }; +} |
