[NixOS] Tweak wyoming service names
This commit is contained in:
@@ -2,7 +2,7 @@ switch *args:
|
|||||||
sudo nixos-rebuild switch --flake '.#' --impure {{args}}
|
sudo nixos-rebuild switch --flake '.#' --impure {{args}}
|
||||||
|
|
||||||
fix-local-path-issue:
|
fix-local-path-issue:
|
||||||
nix flake lock --update-input imalison-taffybar
|
nix flake update imalison-taffybar
|
||||||
|
|
||||||
|
|
||||||
expire-home-manager-generations:
|
expire-home-manager-generations:
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
myModules.wyoming.enable = true;
|
myModules.wyoming.enable = true;
|
||||||
|
|
||||||
hardware.enableRedistributableFirmware = true;
|
hardware.enableRedistributableFirmware = true;
|
||||||
|
# nixpkgs.config.cudaSupport = true;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
android-studio
|
android-studio
|
||||||
@@ -72,7 +73,7 @@
|
|||||||
networking.hostName = "strixi-minaj";
|
networking.hostName = "strixi-minaj";
|
||||||
|
|
||||||
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
|
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault true;
|
||||||
|
|
||||||
home-manager.users = forEachUser {
|
home-manager.users = forEachUser {
|
||||||
home.stateVersion = "23.05";
|
home.stateVersion = "23.05";
|
||||||
|
|||||||
@@ -21,4 +21,5 @@ makeEnable config "myModules.nvidia" false {
|
|||||||
services.xserver = {
|
services.xserver = {
|
||||||
videoDrivers = [ "nvidia" ];
|
videoDrivers = [ "nvidia" ];
|
||||||
};
|
};
|
||||||
|
nixpkgs.config.cudaSupport = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -151,11 +151,18 @@ final: prev:
|
|||||||
pythonPackagesExtensions = prev.pythonPackagesExtensions ++ [
|
pythonPackagesExtensions = prev.pythonPackagesExtensions ++ [
|
||||||
(
|
(
|
||||||
python-final: python-prev: {
|
python-final: python-prev: {
|
||||||
|
pysilero-vad = python-prev.pysilero-vad.overridePythonAttrs (_: {
|
||||||
|
src = final.fetchFromGitHub {
|
||||||
|
owner = "colonelpanic8";
|
||||||
|
repo = "pysilero-vad";
|
||||||
|
rev = "846caf4aa6c5f5319b87d3127dfe0aa9e88b338e";
|
||||||
|
hash = "sha256-SjoyiHm2RiLDFbwduKsoPK4/AvQiwZ39ZsPj2etXRV0=";
|
||||||
|
};
|
||||||
|
});
|
||||||
home-assistant-chip-wheels = python-prev.home-assistant-chip-wheels.overrideAttrs
|
home-assistant-chip-wheels = python-prev.home-assistant-chip-wheels.overrideAttrs
|
||||||
(oldAttrs: rec {
|
(oldAttrs: rec {
|
||||||
bypassAttestationVerificationPatch = final.fetchpatch {
|
bypassAttestationVerificationPatch = final.fetchpatch {
|
||||||
url = "https://raw.githubusercontent.com/tronikos/chip-wheels/8a5ec21d114010723cf428ffe79e244da7562390/8766-Bypass-attestation-verification.patch";
|
url = "https://raw.githubusercontent.com/tronikos/chip-wheels/8a5ec21d114010723cf428ffe79e244da7562390/8766-Bypass-attestation-verification.patch";
|
||||||
# You will need to compute or look up the correct sha256:
|
|
||||||
sha256 = "sha256-RgmlPRSfw1PPMdHBzpoK2Drrb8nEagATY8Y5ngi7x0k=";
|
sha256 = "sha256-RgmlPRSfw1PPMdHBzpoK2Drrb8nEagATY8Y5ngi7x0k=";
|
||||||
};
|
};
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ makeEnable config "myModules.wyoming" false {
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
alsa-utils
|
alsa-utils
|
||||||
];
|
];
|
||||||
systemd.services."wyoming-satellite".path = with pkgs; [pipewire];
|
systemd.services."wyoming-satellite".path = with pkgs; [pipewire pulseaudio];
|
||||||
services.wyoming = {
|
services.wyoming = {
|
||||||
satellite = {
|
satellite = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -16,21 +16,22 @@ makeEnable config "myModules.wyoming" false {
|
|||||||
"--wake-word-name=ok_nabu"
|
"--wake-word-name=ok_nabu"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
faster-whisper.servers.strixi = {
|
openwakeword = {
|
||||||
|
enable = true;
|
||||||
|
preloadModels = ["alexa" "ok_nabu" "hey_rhasspy"];
|
||||||
|
uri = "tcp://0.0.0.0:10400";
|
||||||
|
};
|
||||||
|
faster-whisper.servers."${config.networking.hostName}-whisper" = {
|
||||||
enable = true;
|
enable = true;
|
||||||
uri = "tcp://0.0.0.0:10300";
|
uri = "tcp://0.0.0.0:10300";
|
||||||
device = "auto";
|
device = "auto";
|
||||||
language = "en";
|
language = "en";
|
||||||
model = "turbo";
|
model = "turbo";
|
||||||
};
|
};
|
||||||
piper.servers.strixi = {
|
piper.servers."${config.networking.hostName}-piper" = {
|
||||||
enable = true;
|
enable = true;
|
||||||
uri = "tcp://0.0.0.0:10200";
|
uri = "tcp://0.0.0.0:10200";
|
||||||
voice = "en-us-ryan-medium";
|
voice = "en-us-ryan-medium";
|
||||||
};
|
};
|
||||||
openwakeword = {
|
|
||||||
enable = true;
|
|
||||||
preloadModels = ["alexa" "ok_nabu" "hey_rhasspy"];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user