From 6aec084fa5d095666e81676e78f7054c83703faa Mon Sep 17 00:00:00 2001 From: will Date: Sun, 8 Sep 2024 18:13:00 +1000 Subject: [PATCH] fix: remove manual wait4path in nix-daemon --- modules/services/nix-daemon.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/services/nix-daemon.nix b/modules/services/nix-daemon.nix index 42d31c94..ce9c1894 100644 --- a/modules/services/nix-daemon.nix +++ b/modules/services/nix-daemon.nix @@ -44,10 +44,7 @@ in nix.useDaemon = true; launchd.daemons.nix-daemon = { - serviceConfig.ProgramArguments = [ - "/bin/sh" "-c" - "/bin/wait4path ${config.nix.package}/bin/nix-daemon && exec ${config.nix.package}/bin/nix-daemon" - ]; + command = "${config.nix.package}/bin/nix-daemon"; serviceConfig.ProcessType = config.nix.daemonProcessType; serviceConfig.LowPriorityIO = config.nix.daemonIOLowPriority; serviceConfig.Label = "org.nixos.nix-daemon"; # must match daemon installed by Nix regardless of the launchd label Prefix