From 726be953eb3d4775573faab74b4e2b0028b2fbe2 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Thu, 14 Dec 2023 16:07:31 +0800 Subject: [PATCH] darwin: clash-meta-client: keepalive --- .../guanranwang/darwin/profiles/opt-in/clash-meta-client.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/users/guanranwang/darwin/profiles/opt-in/clash-meta-client.nix b/users/guanranwang/darwin/profiles/opt-in/clash-meta-client.nix index ae1f866..26e151f 100644 --- a/users/guanranwang/darwin/profiles/opt-in/clash-meta-client.nix +++ b/users/guanranwang/darwin/profiles/opt-in/clash-meta-client.nix @@ -20,7 +20,10 @@ in { # launchd service launchd.daemons."clash-meta" = { command = "${lib.getExe pkgs.clash-meta} -d /etc/clash-meta"; - serviceConfig.RunAtLoad = true; + serviceConfig = { + RunAtLoad = true; + KeepAlive.NetworkState = true; + }; }; # Web interface