From c4a5c1c523c2eb9270aa2abf9b465a7cc6444837 Mon Sep 17 00:00:00 2001 From: Indexyz <7685264+5aaee9@users.noreply.github.com> Date: Thu, 14 Dec 2023 23:55:12 +0800 Subject: [PATCH] fix: StartLimitIntervalSec not in [Service] --- modules/services/clash/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/services/clash/default.nix b/modules/services/clash/default.nix index 0eaadb79..4c7216b1 100644 --- a/modules/services/clash/default.nix +++ b/modules/services/clash/default.nix @@ -128,6 +128,7 @@ in ${profileCommands} exec ${lib.getExe cfg.package} -d ${dataDir} -ext-ctl ${cfg.controller} -f ${cfg.config}.yaml ${optionalString (cfg.secret != null) ''--secret ${cfg.secret}''} ''; + startLimitIntervalSec = 0; serviceConfig = { LimitNOFILE = "16777216"; @@ -136,7 +137,6 @@ in TasksMax = "infinity"; Restart = "always"; - StartLimitIntervalSec = 0; StateDirectory = "clash"; RuntimeDirectory = "clash";