Everything is working on the bigbox

This commit is contained in:
ari committed 2024-07-19 02:20:11 -04:00
1 parent 1f8639dda2
commit 0d9d0014f8
8 files changed
+94 -44

No files matched your search

+39 -20
View File
@@ -3,35 +3,54 @@
imports = [ ./hl-bigbox1.hardware-configuration.nix ];
# firmware updater
services.fwupd.enable = true;
virtualisation.docker.enableNvidia = true;
hardware.graphics.enable32Bit = true;
systemd.enableUnifiedCgroupHierarchy = false;
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.tmp.useTmpfs = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
# Ollama
services.ollama = {
enable = true;
acceleration = "cuda";
host = "0.0.0.0";
# Containers
virtualisation.oci-containers = {
backend = "docker";
containers = {
ollama = {
autoStart = true;
image = "ollama/ollama";
extraOptions = [ "--gpus" "all" ];
ports = [ "11434:11434" ];
volumes = [ "ollama:/root/.ollama" ];
};
openwakeword = {
autoStart = true;
image = "rhasspy/wyoming-openwakeword";
cmd = [ "--preload-model" "ok_nabu" ];
ports = [ "10400:10400" ];
};
};
};
# Wyoming Service
services.wyoming = {
# openwakeword.enable = true;
faster-whisper.servers.main-eng = {
enable = true;
device = "cpu";
model = "medium.en";
language = "en";
uri = "tcp://0.0.0.0:10300";
};
piper.servers.pier = {
enable = true;
uri = "tcp://0.0.0.0:10200";
voice = "en_GB-alan-medium";
};
};
# services.wyoming = {
# openwakeword.enable = true;
# faster-whisper.servers.main-eng = {
# enable = true;
# device = "cpu";
# model = "medium.en";
# language = "en";
# uri = "tcp://0.0.0.0:10300";
# };
# piper.servers.pier = {
# enable = true;
# uri = "tcp://0.0.0.0:10200";
# voice = "en_GB-alan-medium";
# };
# };
# Nvidia Settings
services.xserver.videoDrivers = [ "nvidia" ];
services.xserver.enable = true;
hardware.graphics.enable = true;
hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = false;