mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-11-05 05:43:12 +03:00
services.nix-daemon: use wrapper to possibly avoid launchd startup issues
This commit is contained in:
parent
aaa261694a
commit
8065a509a4
@ -41,7 +41,7 @@ in
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
launchd.daemons.activate-system = {
|
||||
serviceConfig.ProgramArguments = [ "/bin/sh" "${activateScript}" ];
|
||||
serviceConfig.ProgramArguments = [ "/bin/sh" "-c" "exec ${activateScript}" ];
|
||||
serviceConfig.KeepAlive.SuccessfulExit = false;
|
||||
serviceConfig.RunAtLoad = true;
|
||||
};
|
||||
|
@ -38,7 +38,7 @@ in
|
||||
'';
|
||||
|
||||
launchd.daemons.nix-daemon = {
|
||||
serviceConfig.Program = "${config.nix.profile}/bin/nix-daemon";
|
||||
serviceConfig.ProgramArguments = [ "/bin/sh" "-c" "exec ${config.nix.profile}/bin/nix-daemon" ];
|
||||
serviceConfig.KeepAlive = true;
|
||||
serviceConfig.ProcessType = "Background";
|
||||
serviceConfig.LowPriorityIO = config.nix.daemonIONice;
|
||||
|
Loading…
Reference in New Issue
Block a user