added whisper and piper to home-assistant

This commit is contained in:
2025-03-09 17:15:16 -04:00
parent 27c59192c8
commit 0a50d94af4
4 changed files with 33 additions and 0 deletions

View File

@@ -13,6 +13,7 @@
"mistral-nemo:12b" "mistral-nemo:12b"
"dolphin-mixtral:8x7b" "dolphin-mixtral:8x7b"
"qwq:32b" "qwq:32b"
"Qihoo360-Light-R1-32B"
]; ];
models = "/zfs/models"; models = "/zfs/models";
acceleration = "cuda"; acceleration = "cuda";

View File

@@ -10,6 +10,7 @@
./services ./services
./hardware.nix ./hardware.nix
./networking.nix ./networking.nix
./nvidia.nix
./programs.nix ./programs.nix
./runners ./runners
./syncthing.nix ./syncthing.nix

16
systems/jeeves/nvidia.nix Normal file
View File

@@ -0,0 +1,16 @@
{ config, ... }:
{
nixpkgs.config.cudaSupport = true;
services.xserver.videoDrivers = [ "nvidia" ];
hardware = {
nvidia = {
modesetting.enable = true;
powerManagement.enable = true;
package = config.boot.kernelPackages.nvidiaPackages.beta;
nvidiaSettings = true;
open = false;
};
nvidia-container-toolkit.enable = true;
};
}

View File

@@ -58,6 +58,7 @@ in
rokuecp rokuecp
uiprotect uiprotect
wakeonlan wakeonlan
wyoming
]; ];
extraComponents = [ "isal" ]; extraComponents = [ "isal" ];
}; };
@@ -66,5 +67,19 @@ in
openFirewall = true; openFirewall = true;
address = "192.168.90.40"; address = "192.168.90.40";
}; };
wyoming = {
faster-whisper.servers.main = {
enable = true;
uri = "tcp://0.0.0.0:10300";
model = "medium.en";
language = "en";
device = "cuda";
};
piper.servers.main = {
enable = true;
uri = "tcp://0.0.0.0:10200";
voice = "en_GB-alba-medium";
};
};
}; };
} }