main
 1{
 2  flake.modules.nixos."services/mihomo" = _: {
 3    services.mihomo.tunMode = true;
 4
 5    services.mihomo.config.tun = {
 6      enable = true;
 7      stack = "mixed";
 8      device = "ElysianRealm";
 9      auto-route = true;
10      auto-detect-interface = true;
11      dns-hijack = [
12        "any:53"
13        "tcp://any:53"
14      ];
15      strict-route = true;
16      mtu = 1500;
17    };
18  };
19}