From a5bb9072ee30959e2b6a6c244f03342896501373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Peiffer?= Date: Sat, 8 Mar 2025 10:40:27 +0100 Subject: [PATCH] use command because it uses wait4path --- modules/services/adguardhome.nix | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/modules/services/adguardhome.nix b/modules/services/adguardhome.nix index 18aa9963..ffb1fe96 100644 --- a/modules/services/adguardhome.nix +++ b/modules/services/adguardhome.nix @@ -116,13 +116,7 @@ in config = mkIf cfg.enable { launchd.daemons.adguardhome = { - script = '' - # Wait for /nix/store to be mounted - while [ ! -x "${lib.getExe cfg.package}" ]; do - sleep 1 - done - exec ${lib.getExe cfg.package} -c ${configFile} --no-check-update ${builtins.concatStringsSep " " cfg.extraArgs} - ''; + command = "${lib.getExe cfg.package} -c ${configFile} --no-check-update ${builtins.concatStringsSep " " cfg.extraArgs}"; serviceConfig = { KeepAlive = true; RunAtLoad = true;