From 8cf39d21e6eb2cad719d999bc3c00c00755af98e Mon Sep 17 00:00:00 2001 From: Nathan Date: Thu, 31 Jul 2025 11:50:22 -0500 Subject: [PATCH] prepare for satellite --- system-config/configuration/laptop/default.nix | 17 ++++++++++------- .../services/containers/wyoming/default.nix | 11 +++++++++-- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/system-config/configuration/laptop/default.nix b/system-config/configuration/laptop/default.nix index ebfddb7..5fc2a33 100644 --- a/system-config/configuration/laptop/default.nix +++ b/system-config/configuration/laptop/default.nix @@ -77,13 +77,16 @@ netbird.enable = true; ollama.enable = true; - wyoming = { - enable = false; - satelliteOnly = false; - }; - virtualization.homeassistant = { - enable = false; - configvol = "/etc/homeassistant/config:/config"; + + virtualization = { + + wyoming = { + enable = false; + }; + + homeassistant = { + enable = false; + }; }; }; diff --git a/system-config/services/containers/wyoming/default.nix b/system-config/services/containers/wyoming/default.nix index 6e8c85f..e533c4e 100644 --- a/system-config/services/containers/wyoming/default.nix +++ b/system-config/services/containers/wyoming/default.nix @@ -32,7 +32,7 @@ hostAddress = "192.168.100.10"; localAddress = "192.168.100.26"; - bindMounts = { + bindMounts = lib.mkIf config.sysconfig.opts.virtualization.wyoming.faster-whisper { "/dev/nvidia0" = { hostPath = "/dev/nvidia0"; isReadOnly = false; @@ -53,9 +53,14 @@ hostPath = "/dev/nvidia-uvm-tools"; isReadOnly = false; }; + } lib.mkIf config.sysconfig.opts.virtualization.wyoming.satellite { + "/dev/snd" = { + hostPath = "/dev/snd"; + isReadOnly = false; + }; }; - allowedDevices = [ + allowedDevices = [] ++ lib.mkIf config.sysconfig.opts.virtualization.wyoming.faster-whisper [ { node = "/dev/nvidia0"; modifier = "rw"; @@ -76,6 +81,8 @@ node = "/dev/nvidia-uvm-tools"; modifier = "rw"; } + ] ++ lib.mkIf config.sysconfig.opts.virtualization.wyoming.satellite [ + ]; config = {