fixup! nixos: clash-meta-client: use sops templates

This commit is contained in:
Guanran Wang 2023-12-26 10:09:28 +08:00
parent 4cecc06627
commit 10e76e51b9
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
2 changed files with 31 additions and 31 deletions

View file

@ -5,6 +5,13 @@ pr: &pr { type: select, proxies: [ 默认, 香港, 台湾, 日本, 新加坡,
# 这里是订阅更新和延迟测试相关的 # 这里是订阅更新和延迟测试相关的
p: &p { type: http, interval: 3600, health-check: { enable: true, url: https://www.gstatic.com/generate_204, interval: 300, }, } p: &p { type: http, interval: 3600, health-check: { enable: true, url: https://www.gstatic.com/generate_204, interval: 300, }, }
use: &use
type: select
use:
- efcloud
- spcloud
#- pawdroid
######### 锚点 end ####### ######### 锚点 end #######
allow-lan: true allow-lan: true
@ -91,25 +98,25 @@ proxy-groups:
- { name: 自动选择, <<: *use, tolerance: 2, type: url-test } - { name: 自动选择, <<: *use, tolerance: 2, type: url-test }
rules: rules:
- GEOIP,lan,直连,no-resolve - GEOIP, lan, DIRECT, no-resolve
- GEOSITE,biliintl,哔哩东南亚 - GEOSITE, biliintl, 哔哩东南亚
- GEOSITE,ehentai,ehentai - GEOSITE, ehentai, ehentai
- GEOSITE,github,Github - GEOSITE, github, Github
- GEOSITE,twitter,Twitter - GEOSITE, twitter, Twitter
- GEOSITE,youtube,YouTube - GEOSITE, youtube, YouTube
- GEOSITE,google,Google - GEOSITE, google, Google
- GEOSITE,telegram,Telegram - GEOSITE, telegram, Telegram
- GEOSITE,netflix,NETFLIX - GEOSITE, netflix, NETFLIX
- GEOSITE,bilibili,哔哩哔哩 - GEOSITE, bilibili, 哔哩哔哩
- GEOSITE,bahamut,巴哈姆特 - GEOSITE, bahamut, 巴哈姆特
- GEOSITE,spotify,Spotify - GEOSITE, spotify, Spotify
- GEOSITE,pixiv,Pixiv - GEOSITE, pixiv, Pixiv
- GEOSITE,geolocation-!cn,其他 - GEOSITE, geolocation-!cn, 其他
- GEOIP,google,Google - GEOIP, google, Google
- GEOIP,netflix,NETFLIX - GEOIP, netflix, NETFLIX
- GEOIP,telegram,Telegram - GEOIP, telegram, Telegram
- GEOIP,twitter,Twitter - GEOIP, twitter, Twitter
- GEOSITE,CN,国内 - GEOSITE, CN, 国内
- GEOIP,CN,国内 - GEOIP, CN, 国内
- MATCH,其他 - MATCH, 其他

View file

@ -25,14 +25,8 @@
owner = config.systemd.services."clash".serviceConfig.User; owner = config.systemd.services."clash".serviceConfig.User;
group = config.systemd.services."clash".serviceConfig.Group; group = config.systemd.services."clash".serviceConfig.Group;
content = content =
'' builtins.readFile ./config.yaml
use: &use + ''
type: select
use:
- efcloud
- spcloud
#- pawdroid
proxy-providers: proxy-providers:
efcloud: efcloud:
<<: *p <<: *p
@ -43,8 +37,7 @@
#pawdroid: #pawdroid:
# <<: *p # <<: *p
# url: "${config.sops.placeholder."clash/proxy-providers/pawdroid"}" # url: "${config.sops.placeholder."clash/proxy-providers/pawdroid"}"
'' '';
+ builtins.readFile ./config.yaml;
}; };
### System proxy settings ### System proxy settings