diff --git a/hosts/homeassistant/homeassistant.nix b/hosts/homeassistant/homeassistant.nix index 4024c88..6484935 100755 --- a/hosts/homeassistant/homeassistant.nix +++ b/hosts/homeassistant/homeassistant.nix @@ -367,15 +367,60 @@ in providers = [ "airplay" "apple_music" + "bluesound" + "builtin" "chromecast" - "spotify" + "deezer" "dlna" + "fanarttv" + "filesystem_local" + "filesystem_smb" + "fully_kiosk" "hass" "hass_players" + "jellyfin" + "musicbrainz" + "opensubsonic" "player_group" + "plex" + "qobuz" + "radiobrowser" + "siriusxm" + "slimproto" + "snapcast" + "sonos" + "sonos_s1" + "soundcloud" + "spotify" + "template_player_provider" + "test" + "theaudiodb" + "tidal" + "tunein" "ytmusic" ]; }; + + # Enable AirPlay + pipewire = { + # opens UDP ports 6001-6002 + raopOpenFirewall = true; + + extraConfig.pipewire = { + "10-airplay" = { + "context.modules" = [ + { + name = "libpipewire-module-raop-discover"; + + # increase the buffer size if you get dropouts/glitches + # args = { + # "raop.latency.ms" = 500; + # }; + } + ]; + }; + }; + }; }; # Enable required hardware support for the Zigbee adapter diff --git a/hosts/nas/apps.nix b/hosts/nas/apps.nix index 54ba60e..2edd65e 100755 --- a/hosts/nas/apps.nix +++ b/hosts/nas/apps.nix @@ -10,6 +10,7 @@ ./apps/paperless ./apps/paperless-ai ./apps/traefik + ./apps/wyoming ../../modules ./apps/netdata diff --git a/hosts/nas/apps/wyoming/default.nix b/hosts/nas/apps/wyoming/default.nix new file mode 100755 index 0000000..c07e39b --- /dev/null +++ b/hosts/nas/apps/wyoming/default.nix @@ -0,0 +1,18 @@ +{ pkgs, ... }: +{ + services.wyoming = { + faster-whisper.servers.hass-whisper = { + enable = true; + device = "cuda"; + language = "en"; + model = "distil-large-v3"; + uri = "tcp://0.0.0.0:10300"; + }; + + piper.servers.hass-piper = { + enable = true; + voice = "en-us-ryan-high"; + uri = "tcp://0.0.0.0:10200"; + }; + }; +} \ No newline at end of file diff --git a/hosts/nas/configuration.nix b/hosts/nas/configuration.nix index 6a2f178..a507137 100755 --- a/hosts/nas/configuration.nix +++ b/hosts/nas/configuration.nix @@ -33,6 +33,21 @@ in "flakes" ]; + # enable cuda support + nixpkgs.config.cudaSupport = true; + nixpkgs.config.allowUnfreePredicate = + p: + builtins.all ( + license: + license.free + || builtins.elem license.shortName [ + "CUDA EULA" + "cuDNN EULA" + "cuTENSOR EULA" + "NVidia OptiX EULA" + ] + ) (if builtins.isList p.meta.license then p.meta.license else [ p.meta.license ]); + # Cockpit services.cockpit = { enable = false; diff --git a/hosts/nas/networking.nix b/hosts/nas/networking.nix index 59dbae7..d699d61 100755 --- a/hosts/nas/networking.nix +++ b/hosts/nas/networking.nix @@ -9,6 +9,8 @@ let 19999 # netdata 1025 1143 + 10200 + 10300 ]; in {