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

Ordering it after network-online.target only makes sense, if it actually
gets requested.
This commit is contained in:
Martin Weinelt 2024-05-23 10:43:33 +02:00
parent e2978833fe
commit aee13d3d9a
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
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"
];