nixos/wyoming-faster-whisper: fix typo in assertion

Fixes typo in assertion: `initialPromt` -> `initialPrompt`

This typo causes the module to fail with:

```
error: A definition for option `assertions' is not of type `list of unspecified value'. Definition values:
- In `/nix/store/.../nixos/modules/services/home-automation/wyoming/faster-whisper.nix': <function>
```

The typo was introduced in the v2.5.0 update.​​​​​​​​​​​​​​​​
This commit is contained in:
Bas Nijholt
2025-06-28 09:55:58 -07:00
committed by GitHub
parent 7739565bf1
commit 06acce89f1

View File

@@ -282,7 +282,7 @@ in
mkIf (cfg.servers != { }) {
assertions = mapAttrsToList (
server: options: {
assertion = options.useTransformers -> options.initialPromt == null;
assertion = options.useTransformers -> options.initialPrompt == null;
message = "wyoming-faster-whisper/${server}: Transformer models (`useTransformers`) do not currently support an `initialPrompt`.";
}
);