1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-31 04:04:45 +00:00

use command because it uses wait4path

This commit is contained in:
Éric Peiffer 2025-03-08 10:40:27 +01:00
parent 659cbfd30c
commit a5bb9072ee

View file

@ -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;