secrets: add clash/proxies/lon0

This commit is contained in:
Guanran Wang 2024-01-26 05:37:20 +08:00
parent b19ee82d31
commit e6d7a787a1
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
3 changed files with 10 additions and 3 deletions

View file

@ -41,7 +41,7 @@ profile:
store-fake-ip: true
proxy-groups:
- { name: PROXY, type: select, proxies: [自动选择, 备用自动选择, DIRECT] }
- { name: PROXY, type: select, proxies: [自动选择, 备用自动选择, DIRECT, lon0] }
- { name: 自动选择, <<: *use, tolerance: 2, type: url-test }
- { name: 备用自动选择, <<: *use-backup, tolerance: 2, type: url-test }

View file

@ -17,6 +17,7 @@
### sops-nix
sops.secrets = builtins.mapAttrs (_name: value: value // {restartUnits = ["clash.service"];}) {
"clash/secret" = {};
"clash/proxies/lon0" = {};
"clash/proxy-providers/efcloud" = {};
"clash/proxy-providers/spcloud" = {};
};
@ -27,6 +28,10 @@
builtins.readFile ./config.yaml
+ ''
secret: "${config.sops.placeholder."clash/secret"}"
proxies:
${config.sops.placeholder."clash/proxies/lon0"}
proxy-providers:
efcloud:
<<: *fetch

View file

@ -5,6 +5,8 @@ wireless:
OpenWrt: ENC[AES256_GCM,data:tlZJExED1Brv4/hOJjbgEbyLMQZVfNhl/5ux94IDM5jSL2lEBYy74qf4VVn2SKMYUuu7bjV7UlnwrD/jzDRuO/gWfkeuoZ5uh3pX0s2wv5E2Z7nJjkYtVn0XDlr8m/4Y6R14ahSIqKJKY4LAAeuQo0t7jEeYv4E3kuyhXUNE5jjrdD9mW+ObS1WV/DpBqUZc3dJe+88EVzgVa5F/L+VWQ3Klz5TduQzqfOyjjoNe+z8gwODzHczfPZCdplfo4PbrMWV8FlyUdJUX37nkZiEkyUpPuksZHb5OPAtx9fCh/KF5y/txS9oZTwOkiE4LBQBpj2NcLMQGOEdtRYLzJekyaOGChrtD+mFfL9LBuLwQLAzHLUI4oZ3PUgu3zXYevtmyrSSwlK/2iama71swmNu+qYws+WkjMVyF4MB/KCtMJULbZW9XJp7tw7cfSzek0RMizlk3MgrEyF2w3J9vx6Q4OHPSE48kgK2Kw0kg93wl9uO6kCRq0QiTJ6lZHopsWyWHTcs1,iv:kvBRYkhFAmDCSdU5Nkc66VblbjQfWHp7ls8x0d46ueA=,tag:Y/oa7vgoI/VsZ+OyJUjZ/g==,type:str]
clash:
secret: ENC[AES256_GCM,data:eCq/pDlSOw==,iv:QGNKxqmkj9BWFBJGj/O4fUL8Ey8zGEHMsWX02DrM82U=,tag:z2vVCBSt6mw47ca2xoxg9A==,type:str]
proxies:
lon0: ENC[AES256_GCM,data:UlcOeEj3v/pbMhISRwyxOe/d5GjHk1vFZn0n1wgl8UXJLY7XHJ4/rcPNzbUe612HqpdlLLzaoMkNJAGQe6gam4AAaWxvq1tlp440tNEVROvjAtLWGypR1QkTNlmuKU1COrJmwIWoPNWmH44RFR2EsiGzrAQt6v2grkT/MSJCPBo/E+OUFJMR4H3ojGMYn9d9NEGxVfJSNb1mtCbCmy5Alvu5bhdFeETUgTwWdyxOUtEEy5Y9+QLwVJo9XiziPAefjo5k56TXaIccgSpZ8Iu/YiwjFntAvgomBGbm2rMQF5UHnIbr7YlzgrsQ9AzMtKx5SgZkhyPSL7aHANqv,iv:cW8FuXEeLtaORU4K6mZ1GgdqpzZ0txn6mqlsO4gRk3o=,tag:1Z0j35v4X4i73vLPMSI4wQ==,type:str]
proxy-providers:
efcloud: ENC[AES256_GCM,data:fFI81oLQOqr6dOexIqlP77RUOpsmrFyoeCF5HezX2P60iftnV+LXkdxbLLk1+Tn1VcRBPAtRPA7O7gQFY2fWNX2chc1a+xsBvCD0b2Knkw==,iv:rk4tcUwPuorzMWX7x7kQVsd/ihhRnT4REl9Dn/KbZVA=,tag:4CU8My2eZ0fxkPY07YhK2g==,type:str]
spcloud: ENC[AES256_GCM,data:Uz0SLmSxzV/hcsBuYtlsZ5G5E8wjzmHcFMGCyBrEewOr6gAdBQvC4njotYbMIdQAQRTgAE2wBukdSxXWCTrNph7uoVhskz1YkNjxnQVPUO5WfQ==,iv:TwHPdeATx+LanfhHeD7M5sSf3M2NLBWBAAaFTwgsK7A=,tag:9DMgcSoy4ksYl/dPWwA+dA==,type:str]
@ -32,8 +34,8 @@ sops:
bEdVQ0dicTVaRkJUNFB0d3Y1S1hmL3MKFVPyIyjRkQcdimUE/tWxQzQU1cqkB5lN
o+7a8JuA5gOxG7OInWbfkDe9/wSFCJW2S5z9jON/tLy6atPdmPYUdg==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2024-01-22T10:23:16Z"
mac: ENC[AES256_GCM,data:/wqXDtTtkg47r9xeDCTOSrRjdrafSt1iCNcdZ2wlU8xRSfBSfm7/NFszQukhXr3L/WUDSeG3BXirhDiIbKW5uUvimcA/ef1M09z1flV4+3/4bl513/lncKCyiHeIIEYsXHQLH5U1XB2dWH7sxSF2qE8Twqu/iIDOl3chppKPM0E=,iv:W6VcUmh/km5IrZxNGnx7/FIbDnYD+RftuQnlkVRFWf8=,tag:xPhtZcGkQiiE/dLtU3qlVA==,type:str]
lastmodified: "2024-01-25T21:42:48Z"
mac: ENC[AES256_GCM,data:umwzlCQerlHInmdFvrAeAs/QQQ52eRey18C6ZjjaSRKHLXIKdeFsMqIc0fz9VV+tvlojcBI7X6lIEN0GpiQTCNDes+wJAmetriztxDQ3HsPrs/WWmFc8ObuQ7e5SBLkSCUbtn5O5MduGD/xLpez915HDCQcZcqZHq3wicnAk5d0=,iv:oijMQuYK9KVXK6VTVYKQaPiLV+ohXa7drwrQDp0N5WY=,tag:X4i6m/c/HZWVoNzQYQEYiQ==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.8.1