darwin: clash-meta-client: keepalive

This commit is contained in:
Guanran Wang 2023-12-14 16:07:31 +08:00
parent 26b5a42b61
commit 726be953eb
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

@ -20,7 +20,10 @@ in {
# launchd service # launchd service
launchd.daemons."clash-meta" = { launchd.daemons."clash-meta" = {
command = "${lib.getExe pkgs.clash-meta} -d /etc/clash-meta"; command = "${lib.getExe pkgs.clash-meta} -d /etc/clash-meta";
serviceConfig.RunAtLoad = true; serviceConfig = {
RunAtLoad = true;
KeepAlive.NetworkState = true;
};
}; };
# Web interface # Web interface