mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:46 +01:00
feat(mihomo): sync the policy to Clash Verge on macOS (#424)
This commit is contained in:
1 parent
dbe0f73ed5
commit
e11375fbb8
3 files changed
+287
-1
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user