fixup! darwin: unbreak
This commit is contained in:
parent
d6f3bbf480
commit
42a0319df8
1 changed files with 1 additions and 6 deletions
|
@ -9,10 +9,6 @@ in {
|
||||||
options.services.mihomo = {
|
options.services.mihomo = {
|
||||||
enable = lib.mkEnableOption "Whether to enable Mihomo, A rule-based proxy in Go.";
|
enable = lib.mkEnableOption "Whether to enable Mihomo, A rule-based proxy in Go.";
|
||||||
package = lib.mkPackageOption pkgs "mihomo" {};
|
package = lib.mkPackageOption pkgs "mihomo" {};
|
||||||
configFile = lib.mkOption {
|
|
||||||
type = lib.types.nullOr lib.types.path;
|
|
||||||
description = "Configuration file to use.";
|
|
||||||
};
|
|
||||||
webui = lib.mkOption {
|
webui = lib.mkOption {
|
||||||
default = null;
|
default = null;
|
||||||
type = lib.types.nullOr lib.types.path;
|
type = lib.types.nullOr lib.types.path;
|
||||||
|
@ -25,7 +21,7 @@ in {
|
||||||
- https://metacubexd.pages.dev
|
- https://metacubexd.pages.dev
|
||||||
- yacd:
|
- yacd:
|
||||||
- https://yacd.haishan.me
|
- https://yacd.haishan.me
|
||||||
- clash-dashboard:
|
- clash-dashboard (buggy):
|
||||||
- https://clash.razord.top
|
- https://clash.razord.top
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
@ -43,7 +39,6 @@ in {
|
||||||
command = builtins.concatStringsSep " " [
|
command = builtins.concatStringsSep " " [
|
||||||
(lib.getExe cfg.package)
|
(lib.getExe cfg.package)
|
||||||
"-d /etc/mihomo"
|
"-d /etc/mihomo"
|
||||||
cfg.configFile
|
|
||||||
(lib.optionalString (cfg.webui != null) "-ext-ui ${cfg.webui}")
|
(lib.optionalString (cfg.webui != null) "-ext-ui ${cfg.webui}")
|
||||||
(lib.optionalString (cfg.extraOpts != null) cfg.extraOpts)
|
(lib.optionalString (cfg.extraOpts != null) cfg.extraOpts)
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue