fix: use specialArgs instead of _module.args

Avoids infinite recursion issues in some cases.
This commit is contained in:
Felix Schröter 2023-07-12 20:50:01 +02:00
parent afdcbb0c06
commit 09f7db14c3
Signed by: felschr
GPG key ID: 671E39E6744C807D
3 changed files with 45 additions and 10 deletions
services/home-assistant

View file

@ -0,0 +1,38 @@
{ inputs, ... }:
{
# TODO they don't exist, so not disabling them
/* disabledModules = [
"services/audio/wyoming/piper.nix"
"services/audio/wyoming/faster-whisper.nix"
];
*/
# TODO fails with infinite recursion, why?
# TODO perhaps because of the `pkgs.unstable` override?
imports = [
"${inputs.nixpkgs-unstable}/nixos/modules/services/audio/wyoming/piper.nix"
"${inputs.nixpkgs-unstable}/nixos/modules/services/audio/wyoming/faster-whisper.nix"
];
/* services.wyoming.piper.servers = {
"en" = {
enable = true;
voice = "en_GB-alba-medium";
uri = "tcp://0.0.0.0:10200";
speaker = 0;
};
};
services.wyoming.faster-whisper.servers = {
"tiny-en" = {
enable = true;
model = "tiny-int8";
language = "en";
uri = "tcp://0.0.0.0:10300";
device = "cpu";
};
};
*/
}