hass stuff

This commit is contained in:
mjallen18
2025-03-11 13:26:56 -05:00
parent 9dc289eaee
commit fc4747f49c
5 changed files with 82 additions and 1 deletions

View File

@@ -10,6 +10,7 @@
./apps/paperless
./apps/paperless-ai
./apps/traefik
./apps/wyoming
../../modules
./apps/netdata

View File

@@ -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";
};
};
}

View File

@@ -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;

View File

@@ -9,6 +9,8 @@ let
19999 # netdata
1025
1143
10200
10300
];
in
{