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, }, }
use: &use
type: select
use:
- efcloud
- spcloud
#- pawdroid
######### 锚点 end #######
allow-lan: true
@ -91,7 +98,7 @@ proxy-groups:
- { name: 自动选择, <<: *use, tolerance: 2, type: url-test }
rules:
- GEOIP,lan,直连,no-resolve
- GEOIP, lan, DIRECT, no-resolve
- GEOSITE, biliintl, 哔哩东南亚
- GEOSITE, ehentai, ehentai
- GEOSITE, github, Github

View file

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