nixos/wyoming*: depend on network-online.target

Ordering it after network-online.target only makes sense, if it actually
gets requested.

(cherry picked from commit aee13d3d9a)
This commit is contained in:
Martin Weinelt 2024-05-23 10:43:33 +02:00 committed by github-actions[bot]
parent b0db6df90b
commit 4573e06799
3 changed files with 9 additions and 0 deletions

View File

@ -113,6 +113,9 @@ in
nameValuePair "wyoming-faster-whisper-${server}" {
inherit (options) enable;
description = "Wyoming faster-whisper server instance ${server}";
wants = [
"network-online.target"
];
after = [
"network-online.target"
];

View File

@ -108,6 +108,9 @@ in
config = mkIf cfg.enable {
systemd.services."wyoming-openwakeword" = {
description = "Wyoming openWakeWord server";
wants = [
"network-online.target"
];
after = [
"network-online.target"
];

View File

@ -117,6 +117,9 @@ in
nameValuePair "wyoming-piper-${server}" {
inherit (options) enable;
description = "Wyoming Piper server instance ${server}";
wants = [
"network-online.target"
];
after = [
"network-online.target"
];