Commit 28e2fbd

HPCesia <me@hpcesia.com>
2026-05-26 04:45:17
fix: forgejo runner conflit with mihomo tun
1 parent 04325c4
Changed files (1)
modules
services
forgejo-runner
modules/services/forgejo-runner/default.nix
@@ -41,7 +41,10 @@
               host = "172.17.0.1";
             };
             container = {
-              network = "";
+              # Use host for mihomo to avoid network error
+              # See https://github.com/MetaCubeX/mihomo/issues/1260
+              # See also https://github.com/SagerNet/sing-box/issues/2700
+              network = lib.optionalString (config.services.mihomo.enable) "host";
               enable_ipv6 = true;
               options = "--cap-add sys_admin --cap-add mknod --device /dev/fuse";
             };