fixup! darwin: unbreak

This commit is contained in:
Guanran Wang 2024-07-08 18:14:40 +08:00
parent d6f3bbf480
commit 42a0319df8

View file

@ -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)
];