From 42a0319df8651b7b574ee16bf67a124c4745c911 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Mon, 8 Jul 2024 18:14:40 +0800 Subject: [PATCH] fixup! darwin: unbreak --- darwin/modules/services/mihomo.nix | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/darwin/modules/services/mihomo.nix b/darwin/modules/services/mihomo.nix index 2610e49..3e5cd7a 100644 --- a/darwin/modules/services/mihomo.nix +++ b/darwin/modules/services/mihomo.nix @@ -9,10 +9,6 @@ in { options.services.mihomo = { enable = lib.mkEnableOption "Whether to enable Mihomo, A rule-based proxy in Go."; package = lib.mkPackageOption pkgs "mihomo" {}; - configFile = lib.mkOption { - type = lib.types.nullOr lib.types.path; - description = "Configuration file to use."; - }; webui = lib.mkOption { default = null; type = lib.types.nullOr lib.types.path; @@ -25,7 +21,7 @@ in { - https://metacubexd.pages.dev - yacd: - https://yacd.haishan.me - - clash-dashboard: + - clash-dashboard (buggy): - https://clash.razord.top ''; }; @@ -43,7 +39,6 @@ in { command = builtins.concatStringsSep " " [ (lib.getExe cfg.package) "-d /etc/mihomo" - cfg.configFile (lib.optionalString (cfg.webui != null) "-ext-ui ${cfg.webui}") (lib.optionalString (cfg.extraOpts != null) cfg.extraOpts) ];