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:
parent
659cbfd30c
commit
a5bb9072ee
1 changed files with 1 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue