nixos/wyoming/{faster-whisper,piper}: hook up enable option

This commit is contained in:
Martin Weinelt 2023-12-07 22:15:08 +01:00 committed by Martin Weinelt
parent 815562f445
commit 7b8be9c335
2 changed files with 2 additions and 0 deletions

View file

@ -121,6 +121,7 @@ in
in mkIf (cfg.servers != {}) {
systemd.services = mapAttrs' (server: options:
nameValuePair "wyoming-faster-whisper-${server}" {
inherit (options) enable;
description = "Wyoming faster-whisper server instance ${server}";
after = [
"network-online.target"

View file

@ -116,6 +116,7 @@ in
in mkIf (cfg.servers != {}) {
systemd.services = mapAttrs' (server: options:
nameValuePair "wyoming-piper-${server}" {
inherit (options) enable;
description = "Wyoming Piper server instance ${server}";
after = [
"network-online.target"