From 972626f1422fbdfa9be799c97a83fd30c5de5d90 Mon Sep 17 00:00:00 2001 From: Thomas Churchman Date: Thu, 24 Feb 2022 12:37:29 +0100 Subject: [PATCH] mopidy: make service wait until system is online --- nixos/modules/services/audio/mopidy.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/audio/mopidy.nix b/nixos/modules/services/audio/mopidy.nix index 40e8679f53d7..9d8e67b0ea47 100644 --- a/nixos/modules/services/audio/mopidy.nix +++ b/nixos/modules/services/audio/mopidy.nix @@ -76,7 +76,7 @@ in { systemd.services.mopidy = { wantedBy = [ "multi-user.target" ]; - after = [ "network.target" "sound.target" ]; + after = [ "network-online.target" "sound.target" ]; description = "mopidy music player daemon"; serviceConfig = { ExecStart = "${mopidyEnv}/bin/mopidy --config ${concatStringsSep ":" ([mopidyConf] ++ cfg.extraConfigFiles)}";