diff options
| -rw-r--r-- | flake.nix | 2 | ||||
| -rw-r--r-- | modules/default.nix | 1 | ||||
| -rw-r--r-- | modules/homeassistant/default.nix | 37 |
3 files changed, 39 insertions, 1 deletions
@@ -29,7 +29,7 @@ nixosConfigurations = with self.nixosModules; { # vultr-image = mkSystem [ common users image vultr ]; - ettves = mkSystem [ (import ./machines/ettves) common users wireguard crypto kubernetes zfs teamspeak postgresql quassel powerdns acme authentik hydra ]; + ettves = mkSystem [ (import ./machines/ettves) common users wireguard crypto kubernetes zfs teamspeak postgresql quassel powerdns acme authentik hydra homeassistant ]; phaenn = mkSystem [ (import ./machines/phaenn) common users wireguard crypto kubernetes zfs acme tlmp ]; fra01 = mkSystem [ (import ./machines/fra01) common users wireguard crypto kubernetes vultr bgp powerdns acme ]; nyc01 = mkSystem [ (import ./machines/nyc01) common users wireguard crypto kubernetes vultr bgp powerdns acme ]; 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/"); + }; + }; +} |
