Code Monkey home page Code Monkey logo

Comments (7)

xishang0128 avatar xishang0128 commented on August 18, 2024

How was it installed? By directly downloading the core binary?

from mihomo.

WoLeo-Z avatar WoLeo-Z commented on August 18, 2024
  services.mihomo = {
    enable = true;
    package =  pkgs.mihomo;
    webui = inputs.nur-linyinfeng.packages.x86_64-linux.yacd;
    configFile = "/etc/mihomo/config.yaml";
  };

Alpha 版本也尝试了(自己打包)不过还是一样
直接运行二进制没试过,稍等

from mihomo.

xishang0128 avatar xishang0128 commented on August 18, 2024
  services.mihomo = {
    enable = true;
    package =  pkgs.mihomo;
    webui = inputs.nur-linyinfeng.packages.x86_64-linux.yacd;
    configFile = "/etc/mihomo/config.yaml";
  };

Alpha 版本也尝试了(自己打包)不过还是一样 直接运行二进制没试过,稍等

尝试运行二进制,怀疑可能是nix打包造成的,项目action构建用的是go1.22.5,版本对不上

from mihomo.

WoLeo-Z avatar WoLeo-Z commented on August 18, 2024

好像能开启 TUN 了,不过dns好像解析不了,我的问题
感谢~

from mihomo.

WoLeo-Z avatar WoLeo-Z commented on August 18, 2024

然后我又试了一下 /nix/store/ph9gdr11v4y6szai0093m8kqh3jqknyk-mihomo-1.18.6/bin 里的,也能正常运行,会不会因为 systemd 守护进程没写好

from mihomo.

WoLeo-Z avatar WoLeo-Z commented on August 18, 2024

https://github.com/NixOS/nixpkgs/blob/6794d064edc69918bb0fc0e0eda33ece324be17a/nixos/modules/services/networking/mihomo.nix#L67C11-L67C20

我看着好像也没啥问题。

sudo /nix/store/ph9gdr11v4y6szai0093m8kqh3jqknyk-mihomo-1.18.6/bin/mihomo -d /etc/mihomo

这个正常运行

尝试着自己写 service 文件

https://github.com/Hobr/my-nix/blob/abe52a6000cdb224ce161c64003612d4a0ffcc45/system/common/tool/proxy.nix#L25 这个是别人的

https://wiki.metacubex.one/startup/service/#systemd

from mihomo.

WoLeo-Z avatar WoLeo-Z commented on August 18, 2024

Fixed. Add services.mihomo.tunMode = true;
or set RestrictAddressFamilies = "AF_INET AF_INET6 AF_NETLINK";
Thanks a lot.

from mihomo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.