diff --git a/profiles/homebox/default.nix b/profiles/homebox/default.nix index ca3d382..2c5f11f 100644 --- a/profiles/homebox/default.nix +++ b/profiles/homebox/default.nix @@ -60,7 +60,7 @@ ollama.enable = false; wyoming = { enable = true; - piper = false; + piper = true; openwakeword = true; faster-whisper = true; }; @@ -103,7 +103,7 @@ rustdesk.enable = false; #broken - code-server.enable = false; + code-server.enable = true; novnc.enable = false; diff --git a/profiles/laptop/default.nix b/profiles/laptop/default.nix index df335e2..10107af 100644 --- a/profiles/laptop/default.nix +++ b/profiles/laptop/default.nix @@ -54,6 +54,11 @@ pipewire.enable = mkDefault true; netbird.enable = mkDefault true; ollama.enable = mkDefault true; + + wyoming = { + enable = true; + sattelite.enable = true; + }; }; programs = { diff --git a/system/services/wyoming/default.nix b/system/services/wyoming/default.nix index 3067c11..907626c 100644 --- a/system/services/wyoming/default.nix +++ b/system/services/wyoming/default.nix @@ -59,8 +59,6 @@ satellite = lib.mkIf config.sysconfig.services.wyoming.satellite { enable = true; uri = "tcp://0.0.0.0:11431"; -#user = "nathan"; - vad.enable = false; }; }; diff --git a/system/virtualization/containers/traefik/default.nix b/system/virtualization/containers/traefik/default.nix index d6ec466..fdb93c1 100644 --- a/system/virtualization/containers/traefik/default.nix +++ b/system/virtualization/containers/traefik/default.nix @@ -179,12 +179,12 @@ tls.certResolver = "cloudflare"; #middlewares = [ "authentik" ]; };*/ - homeassistant = { + /*homeassistant = { entryPoints = [ "localsecure" ]; rule = "Host(`hass.esotericbytes.com`)"; service = "homeassistant"; tls.certResolver = "cloudflare"; - }; + };*/ jellyfin = { entryPoints = [ "websecure" "localsecure" ]; rule = "Host(`jellyfin.esotericbytes.com`)"; @@ -301,12 +301,6 @@ jellyfin.loadBalancer.servers = [ { url = "http://192.168.100.14:8096"; } ]; - authentik.loadBalancer.servers = [ { url = "http://192.168.100.10:9003"; } ]; - - #pihole.loadBalancer.servers = [ { url = "http://192.168.100.10:9001"; } ]; - - #portainer.loadBalancer.servers = [ { url = "http://192.168.100.10:9000"; } ]; - keycloak.loadBalancer.servers = [ { url = "http://192.168.100.22:80"; } ]; #novnc.loadBalancer.servers = [ { url = "http://192.168.100.10:6080"; } ]; @@ -320,13 +314,11 @@ servers = [ { url = "http://192.168.100.23:80"; } ]; }; - #ollama.loadBalancer.servers = [ { url = "http://192.168.100.10:11434"; } ]; - openwebui.loadBalancer.servers = [ { url = "http://192.168.100.33:8080"; } ]; code-server.loadBalancer.servers = [ { url = "http://192.168.100.31:4444"; } ]; - homeassistant.loadBalancer.servers = [ { url = "http://192.168.100.25:8123"; } ]; + /*homeassistant.loadBalancer.servers = [ { url = "http://192.168.100.25:8123"; } ];*/ n8n.loadBalancer.servers = [ { url = "http://192.168.100.21:5678"; } ]; }; diff --git a/system/virtualization/docker/home-assistant/default.nix b/system/virtualization/docker/home-assistant/default.nix new file mode 100644 index 0000000..e9abb62 --- /dev/null +++ b/system/virtualization/docker/home-assistant/default.nix @@ -0,0 +1,51 @@ +{ config, lib, ... }: { + + options.sysconfig.docker.home-assistant.enable = with lib; mkOption { + type = with types; bool; + default = false; + }; + + config = lib.mkIf (config.sysconfig.docker.home-assistant.enable && config.sysconfig.docker.enable) { + + networking.firewall.interfaces = { + "ve-traefik" = { + allowedTCPPorts = [ 9003 ]; + }; + }; + + virtualisation.oci-containers.containers.home-assistant = { + image = "home-assistant/home-assistant:stable"; + + # unstable, waiting for 26.05 + #pull = "newer"; + + hostname = "hass.esotericbytes.com"; + + networks = [ + "docker-main" + ]; + + labels = { + "traefik.http.routers.home-assistant.entrypoints" = "localsecure"; + "traefik.http.routers.home-assistant.rule" = "Host(`hass.esotericbytes.com`)"; + "traefik.http.routers.home-assistant.service" = "home-assistant"; + "traefik.http.routers.home-assistant.tls.certResolver" = "cloudflare"; + + "traefik.http.services.home-assistant.loadbalancer.server.url" = "http://192.168.100.10:9003"; + }; + + extraOptions = lib.mkIf config.sysconfig.docker.nvidia [ + "--ip=192.168.101.6" + "--TZ=America/Chicago" + ]; + + ports = [ + "9003:8123" + ]; + + volumes = [ + "/etc/home-assistant/:/config/" + ]; + }; + }; +}