From db3baf65c087b505febdc7c48b08e60fe98beb3a Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Mon, 22 Jan 2024 00:46:58 +0800 Subject: [PATCH] nixos/clash: fix build --- nixos/modules/services/clash.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/clash.nix b/nixos/modules/services/clash.nix index 123fa4e..a9662eb 100644 --- a/nixos/modules/services/clash.nix +++ b/nixos/modules/services/clash.nix @@ -48,6 +48,7 @@ in { systemd.services."clash" = { description = "Clash daemon, A rule-based proxy in Go."; documentation = ["https://clash.wiki/" "https://wiki.metacubex.one/"]; + requires = ["network-online.target"]; after = ["network-online.target"]; wantedBy = ["multi-user.target"]; serviceConfig =