feat(mihomo): sync the policy to Clash Verge on macOS (#424)

This commit is contained in:
ryan4yin | 二花 authored and GitHub committed 2026-10-09 23:27:59 +08:00
1 parent dbe0f73ed5
commit e11375fbb8
3 files changed
+287 -1

No files matched your search

+9
View File
@@ -336,6 +336,15 @@ mihomo-geo:
print $"seeded ($names) -- restart mihomo to pick them up"
}
# Render the mihomo config into a Clash Verge Rev local profile on macOS.
# sources.yaml comes from the encrypted dotfiles sync (nix-secrets `just restore`).
[macos]
[group('services')]
mihomo-verge *args:
#!/usr/bin/env nu
let mod = ("{{ justfile() }}" | path dirname | path join modules nixos desktop networking mihomo)
nu ($mod | path join verge-sync.nu) {{ args }}
# =================================================
#
# Other useful commands